Class: Peddler::APIs::VendorShipmentsV1::ItemQuantity
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::VendorShipmentsV1::ItemQuantity
- Defined in:
- sig/peddler/apis/vendor_shipments_v1.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Integer
readonly
Returns the value of attribute amount.
-
#total_weight ⇒ Peddler::APIs::VendorShipmentsV1::TotalWeight?
readonly
Returns the value of attribute total_weight.
-
#unit_of_measure ⇒ String
readonly
Returns the value of attribute unit_of_measure.
-
#unit_size ⇒ Integer?
readonly
Returns the value of attribute unit_size.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :amount, :unit_of_measure, :total_weight, :unit_size ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::VendorShipmentsV1::ItemQuantity
Instance Method Summary collapse
-
#members ⇒ [ :amount, :unit_of_measure, :total_weight, :unit_size ]
-
#to_h ⇒ { amount: Integer, unit_of_measure: String, total_weight: Peddler::APIs::VendorShipmentsV1::TotalWeight?, unit_size: Integer? }
Instance Attribute Details
#amount ⇒ Integer (readonly)
Returns the value of attribute amount.
385 386 387 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 385 def amount @amount end |
#total_weight ⇒ Peddler::APIs::VendorShipmentsV1::TotalWeight? (readonly)
Returns the value of attribute total_weight.
386 387 388 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 386 def total_weight @total_weight end |
#unit_of_measure ⇒ String (readonly)
Returns the value of attribute unit_of_measure.
387 388 389 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 387 def unit_of_measure @unit_of_measure end |
#unit_size ⇒ Integer? (readonly)
Returns the value of attribute unit_size.
388 389 390 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 388 def unit_size @unit_size end |
Class Method Details
.[](amount:, unit_of_measure:, total_weight:, unit_size:) ⇒ Peddler::APIs::VendorShipmentsV1::ItemQuantity .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::VendorShipmentsV1::ItemQuantity
378 379 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 378
def self.[]: (amount: Integer, unit_of_measure: String, ?total_weight: Peddler::APIs::VendorShipmentsV1::TotalWeight?, ?unit_size: Integer?) -> Peddler::APIs::VendorShipmentsV1::ItemQuantity
| (Integer, String, Peddler::APIs::VendorShipmentsV1::TotalWeight?, Integer?) -> Peddler::APIs::VendorShipmentsV1::ItemQuantity
|
.members ⇒ [ :amount, :unit_of_measure, :total_weight, :unit_size ]
381 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 381
def self.members: () -> [ :amount, :unit_of_measure, :total_weight, :unit_size ]
|
.new(amount:, unit_of_measure:, total_weight:, unit_size:) ⇒ Peddler::APIs::VendorShipmentsV1::ItemQuantity .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::VendorShipmentsV1::ItemQuantity
376 377 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 376
def self.new: (amount: Integer, unit_of_measure: String, ?total_weight: Peddler::APIs::VendorShipmentsV1::TotalWeight?, ?unit_size: Integer?) -> Peddler::APIs::VendorShipmentsV1::ItemQuantity
| (Integer, String, Peddler::APIs::VendorShipmentsV1::TotalWeight?, Integer?) -> Peddler::APIs::VendorShipmentsV1::ItemQuantity
|
.parse ⇒ Peddler::APIs::VendorShipmentsV1::ItemQuantity
383 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 383
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::VendorShipmentsV1::ItemQuantity
|
Instance Method Details
#members ⇒ [ :amount, :unit_of_measure, :total_weight, :unit_size ]
390 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 390
def members: () -> [ :amount, :unit_of_measure, :total_weight, :unit_size ]
|
#to_h ⇒ { amount: Integer, unit_of_measure: String, total_weight: Peddler::APIs::VendorShipmentsV1::TotalWeight?, unit_size: Integer? }
391 |
# File 'sig/peddler/apis/vendor_shipments_v1.rbs', line 391
def to_h: () -> { amount: Integer, unit_of_measure: String, total_weight: Peddler::APIs::VendorShipmentsV1::TotalWeight?, unit_size: Integer? }
|