Class: Peddler::APIs::ShippingV1::ContainerItem
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV1::ContainerItem
- Defined in:
- sig/peddler/apis/shipping_v1.rbs
Instance Attribute Summary collapse
-
#quantity ⇒ Float
readonly
Returns the value of attribute quantity.
-
#title ⇒ String
readonly
Returns the value of attribute title.
-
#unit_price ⇒ Peddler::Money
readonly
Returns the value of attribute unit_price.
-
#unit_weight ⇒ Peddler::APIs::ShippingV1::Weight
readonly
Returns the value of attribute unit_weight.
Class Method Summary collapse
- .[] ⇒ Object
- .members ⇒ [ :quantity, :title, :unit_price, :unit_weight ]
- .new ⇒ Object
- .parse ⇒ Peddler::APIs::ShippingV1::ContainerItem
Instance Method Summary collapse
- #members ⇒ [ :quantity, :title, :unit_price, :unit_weight ]
- #to_h ⇒ { quantity: Float, title: String, unit_price: Peddler::Money, unit_weight: Peddler::APIs::ShippingV1::Weight }
Instance Attribute Details
#quantity ⇒ Float (readonly)
Returns the value of attribute quantity.
112 113 114 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 112 def quantity @quantity end |
#title ⇒ String (readonly)
Returns the value of attribute title.
113 114 115 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 113 def title @title end |
#unit_price ⇒ Peddler::Money (readonly)
Returns the value of attribute unit_price.
114 115 116 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 114 def unit_price @unit_price end |
#unit_weight ⇒ Peddler::APIs::ShippingV1::Weight (readonly)
Returns the value of attribute unit_weight.
115 116 117 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 115 def unit_weight @unit_weight end |
Class Method Details
.[](quantity:, title:, unit_price:, unit_weight:) ⇒ Peddler::APIs::ShippingV1::ContainerItem .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::ShippingV1::ContainerItem
105 106 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 105 def self.[]: (quantity: Float, title: String, unit_price: Peddler::Money, unit_weight: Peddler::APIs::ShippingV1::Weight) -> Peddler::APIs::ShippingV1::ContainerItem | (Float, String, Peddler::Money, Peddler::APIs::ShippingV1::Weight) -> Peddler::APIs::ShippingV1::ContainerItem |
.members ⇒ [ :quantity, :title, :unit_price, :unit_weight ]
108 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 108 def self.members: () -> [ :quantity, :title, :unit_price, :unit_weight ] |
.new(quantity:, title:, unit_price:, unit_weight:) ⇒ Peddler::APIs::ShippingV1::ContainerItem .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::ShippingV1::ContainerItem
103 104 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 103 def self.new: (quantity: Float, title: String, unit_price: Peddler::Money, unit_weight: Peddler::APIs::ShippingV1::Weight) -> Peddler::APIs::ShippingV1::ContainerItem | (Float, String, Peddler::Money, Peddler::APIs::ShippingV1::Weight) -> Peddler::APIs::ShippingV1::ContainerItem |
.parse ⇒ Peddler::APIs::ShippingV1::ContainerItem
110 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 110 def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV1::ContainerItem |
Instance Method Details
#members ⇒ [ :quantity, :title, :unit_price, :unit_weight ]
117 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 117 def members: () -> [ :quantity, :title, :unit_price, :unit_weight ] |
#to_h ⇒ { quantity: Float, title: String, unit_price: Peddler::Money, unit_weight: Peddler::APIs::ShippingV1::Weight }
118 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 118 def to_h: () -> { quantity: Float, title: String, unit_price: Peddler::Money, unit_weight: Peddler::APIs::ShippingV1::Weight } |