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.



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

#descriptionObject

Returns the value of attribute description.



110
111
112
# File 'lib/kiriminaja/types/order.rb', line 110

def description
  @description
end

#nameObject

Returns the value of attribute name.



110
111
112
# File 'lib/kiriminaja/types/order.rb', line 110

def name
  @name
end

#priceObject

Returns the value of attribute price.



110
111
112
# File 'lib/kiriminaja/types/order.rb', line 110

def price
  @price
end

#weightObject

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_hObject



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