Class: Peddler::APIs::ShippingV2::Location

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/shipping_v2.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)


1270
1271
1272
# File 'sig/peddler/apis/shipping_v2.rbs', line 1270

def city
  @city
end

#country_codeString? (readonly)

Returns the value of attribute country_code.

Returns:

  • (String, nil)


1271
1272
1273
# File 'sig/peddler/apis/shipping_v2.rbs', line 1271

def country_code
  @country_code
end

#postal_codeString? (readonly)

Returns the value of attribute postal_code.

Returns:

  • (String, nil)


1272
1273
1274
# File 'sig/peddler/apis/shipping_v2.rbs', line 1272

def postal_code
  @postal_code
end

#state_or_regionString? (readonly)

Returns the value of attribute state_or_region.

Returns:

  • (String, nil)


1273
1274
1275
# File 'sig/peddler/apis/shipping_v2.rbs', line 1273

def state_or_region
  @state_or_region
end

Class Method Details

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

Overloads:



1263
1264
# File 'sig/peddler/apis/shipping_v2.rbs', line 1263

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

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

Returns:

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


1266
# File 'sig/peddler/apis/shipping_v2.rbs', line 1266

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

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

Overloads:



1261
1262
# File 'sig/peddler/apis/shipping_v2.rbs', line 1261

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

.parsePeddler::APIs::ShippingV2::Location

Parameters:

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

Returns:



1268
# File 'sig/peddler/apis/shipping_v2.rbs', line 1268

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

Instance Method Details

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

Returns:

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


1275
# File 'sig/peddler/apis/shipping_v2.rbs', line 1275

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? })


1276
# File 'sig/peddler/apis/shipping_v2.rbs', line 1276

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