Class: Peddler::APIs::ShippingV1::ContainerItem

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#quantityFloat (readonly)

Returns the value of attribute quantity.

Returns:

  • (Float)


112
113
114
# File 'sig/peddler/apis/shipping_v1.rbs', line 112

def quantity
  @quantity
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


113
114
115
# File 'sig/peddler/apis/shipping_v1.rbs', line 113

def title
  @title
end

#unit_pricePeddler::Money (readonly)

Returns the value of attribute unit_price.

Returns:



114
115
116
# File 'sig/peddler/apis/shipping_v1.rbs', line 114

def unit_price
  @unit_price
end

#unit_weightPeddler::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

Overloads:



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 ]

Returns:

  • ([ :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

Overloads:



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

.parsePeddler::APIs::ShippingV1::ContainerItem

Parameters:

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

Returns:



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 ]

Returns:

  • ([ :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 }

Returns:



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 }