Class: Peddler::APIs::ShippingV2::Location
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV2::Location
- Defined in:
- sig/peddler/apis/shipping_v2.rbs
Instance Attribute Summary collapse
-
#city ⇒ String?
readonly
Returns the value of attribute city.
-
#country_code ⇒ String?
readonly
Returns the value of attribute country_code.
-
#postal_code ⇒ String?
readonly
Returns the value of attribute postal_code.
-
#state_or_region ⇒ String?
readonly
Returns the value of attribute state_or_region.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :city, :country_code, :postal_code, :state_or_region ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::ShippingV2::Location
Instance Method Summary collapse
-
#members ⇒ [ :city, :country_code, :postal_code, :state_or_region ]
-
#to_h ⇒ { city: String?, country_code: String?, postal_code: String?, state_or_region: String? }
Instance Attribute Details
#city ⇒ String? (readonly)
Returns the value of attribute city.
1270 1271 1272 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1270 def city @city end |
#country_code ⇒ String? (readonly)
Returns the value of attribute country_code.
1271 1272 1273 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1271 def country_code @country_code end |
#postal_code ⇒ String? (readonly)
Returns the value of attribute postal_code.
1272 1273 1274 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1272 def postal_code @postal_code end |
#state_or_region ⇒ String? (readonly)
Returns the value of attribute state_or_region.
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
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 ]
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
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
|
.parse ⇒ Peddler::APIs::ShippingV2::Location
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 ]
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? }
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? }
|