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.
112 113 114 115 116 117 |
# File 'lib/kiriminaja/types/order.rb', line 112 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.
110 111 112 |
# File 'lib/kiriminaja/types/order.rb', line 110 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
110 111 112 |
# File 'lib/kiriminaja/types/order.rb', line 110 def name @name end |
#price ⇒ Object
Returns the value of attribute price.
110 111 112 |
# File 'lib/kiriminaja/types/order.rb', line 110 def price @price end |
#weight ⇒ Object
Returns the value of attribute weight.
110 111 112 |
# File 'lib/kiriminaja/types/order.rb', line 110 def weight @weight end |
Instance Method Details
#to_h ⇒ Object
119 120 121 122 123 124 125 126 |
# File 'lib/kiriminaja/types/order.rb', line 119 def to_h { name: @name, description: @description, price: @price, weight: @weight, } end |