Class: KiriminAja::Types::InstantPickupItem
- Inherits:
-
Object
- Object
- KiriminAja::Types::InstantPickupItem
- Defined in:
- lib/kiriminaja/types/order.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#price ⇒ Object
Returns the value of attribute price.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(name:, description:, price:, weight:) ⇒ InstantPickupItem
constructor
A new instance of InstantPickupItem.
- #to_h ⇒ Object
Constructor Details
#initialize(name:, description:, price:, weight:) ⇒ InstantPickupItem
Returns a new instance of InstantPickupItem.
160 161 162 163 164 165 |
# File 'lib/kiriminaja/types/order.rb', line 160 def initialize(name:, description:, price:, weight:) @name = name @description = description @price = price @weight = weight end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
158 159 160 |
# File 'lib/kiriminaja/types/order.rb', line 158 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
158 159 160 |
# File 'lib/kiriminaja/types/order.rb', line 158 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
158 159 160 |
# File 'lib/kiriminaja/types/order.rb', line 158 def price @price end |
#weight ⇒ Object
Returns the value of attribute weight.
158 159 160 |
# File 'lib/kiriminaja/types/order.rb', line 158 def weight @weight end |
Instance Method Details
#to_h ⇒ Object
167 168 169 170 171 172 173 174 |
# File 'lib/kiriminaja/types/order.rb', line 167 def to_h { name: @name, description: @description, price: @price, weight: @weight, } end |