Class: Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountInteger (readonly)

Returns the value of attribute amount.

Returns:

  • (Integer)


263
264
265
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 263

def amount
  @amount
end

#unit_of_measureString (readonly)

Returns the value of attribute unit_of_measure.

Returns:

  • (String)


264
265
266
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 264

def unit_of_measure
  @unit_of_measure
end

Class Method Details

.[](amount:, unit_of_measure:) ⇒ Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity .[](arg0, arg1) ⇒ Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity

Overloads:



256
257
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 256

def self.[]: (amount: Integer, unit_of_measure: String) -> Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity
| (Integer, String) -> Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity

.members[ :amount, :unit_of_measure ]

Returns:

  • ([ :amount, :unit_of_measure ])


259
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 259

def self.members: () -> [ :amount, :unit_of_measure ]

.new(amount:, unit_of_measure:) ⇒ Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity .new(arg0, arg1) ⇒ Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity

Overloads:



254
255
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 254

def self.new: (amount: Integer, unit_of_measure: String) -> Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity
| (Integer, String) -> Peddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity

.parsePeddler::APIs::VendorDirectFulfillmentShippingV1::ItemQuantity

Parameters:

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

Returns:



261
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 261

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

Instance Method Details

#members[ :amount, :unit_of_measure ]

Returns:

  • ([ :amount, :unit_of_measure ])


266
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 266

def members: () -> [ :amount, :unit_of_measure ]

#to_h{ amount: Integer, unit_of_measure: String }

Returns:

  • ({ amount: Integer, unit_of_measure: String })


267
# File 'sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs', line 267

def to_h: () -> { amount: Integer, unit_of_measure: String }