Class: KiriminAja::Types::InstantPickupItem

Inherits:
Object
  • Object
show all
Defined in:
lib/kiriminaja/types/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



158
159
160
# File 'lib/kiriminaja/types/order.rb', line 158

def description
  @description
end

#nameObject

Returns the value of attribute name.



158
159
160
# File 'lib/kiriminaja/types/order.rb', line 158

def name
  @name
end

#priceObject

Returns the value of attribute price.



158
159
160
# File 'lib/kiriminaja/types/order.rb', line 158

def price
  @price
end

#weightObject

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_hObject



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