Class: Peddler::APIs::ShippingV1::Location

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/shipping_v1.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cityString? (readonly)

Returns the value of attribute city.

Returns:

  • (String, nil)


432
433
434
# File 'sig/peddler/apis/shipping_v1.rbs', line 432

def city
  @city
end

#country_codeString? (readonly)

Returns the value of attribute country_code.

Returns:

  • (String, nil)


433
434
435
# File 'sig/peddler/apis/shipping_v1.rbs', line 433

def country_code
  @country_code
end

#postal_codeString? (readonly)

Returns the value of attribute postal_code.

Returns:

  • (String, nil)


434
435
436
# File 'sig/peddler/apis/shipping_v1.rbs', line 434

def postal_code
  @postal_code
end

#state_or_regionString? (readonly)

Returns the value of attribute state_or_region.

Returns:

  • (String, nil)


435
436
437
# File 'sig/peddler/apis/shipping_v1.rbs', line 435

def state_or_region
  @state_or_region
end

Class Method Details

.[](city:, country_code:, postal_code:, state_or_region:) ⇒ Peddler::APIs::ShippingV1::Location .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::ShippingV1::Location

Overloads:



425
426
# File 'sig/peddler/apis/shipping_v1.rbs', line 425

def self.[]: (?city: String?, ?country_code: String?, ?postal_code: String?, ?state_or_region: String?) -> Peddler::APIs::ShippingV1::Location
| (String?, String?, String?, String?) -> Peddler::APIs::ShippingV1::Location

.members[ :city, :country_code, :postal_code, :state_or_region ]

Returns:

  • ([ :city, :country_code, :postal_code, :state_or_region ])


428
# File 'sig/peddler/apis/shipping_v1.rbs', line 428

def self.members: () -> [ :city, :country_code, :postal_code, :state_or_region ]

.new(city:, country_code:, postal_code:, state_or_region:) ⇒ Peddler::APIs::ShippingV1::Location .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::ShippingV1::Location

Overloads:



423
424
# File 'sig/peddler/apis/shipping_v1.rbs', line 423

def self.new: (?city: String?, ?country_code: String?, ?postal_code: String?, ?state_or_region: String?) -> Peddler::APIs::ShippingV1::Location
| (String?, String?, String?, String?) -> Peddler::APIs::ShippingV1::Location

.parsePeddler::APIs::ShippingV1::Location

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



430
# File 'sig/peddler/apis/shipping_v1.rbs', line 430

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV1::Location

Instance Method Details

#members[ :city, :country_code, :postal_code, :state_or_region ]

Returns:

  • ([ :city, :country_code, :postal_code, :state_or_region ])


437
# File 'sig/peddler/apis/shipping_v1.rbs', line 437

def members: () -> [ :city, :country_code, :postal_code, :state_or_region ]

#to_h{ city: String?, country_code: String?, postal_code: String?, state_or_region: String? }

Returns:

  • ({ city: String?, country_code: String?, postal_code: String?, state_or_region: String? })


438
# File 'sig/peddler/apis/shipping_v1.rbs', line 438

def to_h: () -> { city: String?, country_code: String?, postal_code: String?, state_or_region: String? }