Class: KiriminAja::Types::InstantPickupPackage
- Inherits:
-
Object
- Object
- KiriminAja::Types::InstantPickupPackage
- Defined in:
- lib/kiriminaja/types/order.rb
Instance Attribute Summary collapse
-
#destination_address ⇒ Object
Returns the value of attribute destination_address.
-
#destination_address_note ⇒ Object
Returns the value of attribute destination_address_note.
-
#destination_lat ⇒ Object
Returns the value of attribute destination_lat.
-
#destination_long ⇒ Object
Returns the value of attribute destination_long.
-
#destination_name ⇒ Object
Returns the value of attribute destination_name.
-
#destination_phone ⇒ Object
Returns the value of attribute destination_phone.
-
#item ⇒ Object
Returns the value of attribute item.
-
#origin_address ⇒ Object
Returns the value of attribute origin_address.
-
#origin_address_note ⇒ Object
Returns the value of attribute origin_address_note.
-
#origin_lat ⇒ Object
Returns the value of attribute origin_lat.
-
#origin_long ⇒ Object
Returns the value of attribute origin_long.
-
#origin_name ⇒ Object
Returns the value of attribute origin_name.
-
#origin_phone ⇒ Object
Returns the value of attribute origin_phone.
-
#shipping_price ⇒ Object
Returns the value of attribute shipping_price.
Instance Method Summary collapse
-
#initialize(origin_name:, origin_phone:, origin_lat:, origin_long:, origin_address:, origin_address_note:, destination_name:, destination_phone:, destination_lat:, destination_long:, destination_address:, destination_address_note:, shipping_price:, item:) ⇒ InstantPickupPackage
constructor
A new instance of InstantPickupPackage.
- #to_h ⇒ Object
Constructor Details
#initialize(origin_name:, origin_phone:, origin_lat:, origin_long:, origin_address:, origin_address_note:, destination_name:, destination_phone:, destination_lat:, destination_long:, destination_address:, destination_address_note:, shipping_price:, item:) ⇒ InstantPickupPackage
Returns a new instance of InstantPickupPackage.
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/kiriminaja/types/order.rb', line 136 def initialize(origin_name:, origin_phone:, origin_lat:, origin_long:, origin_address:, origin_address_note:, destination_name:, destination_phone:, destination_lat:, destination_long:, destination_address:, destination_address_note:, shipping_price:, item:) @origin_name = origin_name @origin_phone = origin_phone @origin_lat = origin_lat @origin_long = origin_long @origin_address = origin_address @origin_address_note = origin_address_note @destination_name = destination_name @destination_phone = destination_phone @destination_lat = destination_lat @destination_long = destination_long @destination_address = destination_address @destination_address_note = destination_address_note @shipping_price = shipping_price @item = item end |
Instance Attribute Details
#destination_address ⇒ Object
Returns the value of attribute destination_address.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def destination_address @destination_address end |
#destination_address_note ⇒ Object
Returns the value of attribute destination_address_note.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def destination_address_note @destination_address_note end |
#destination_lat ⇒ Object
Returns the value of attribute destination_lat.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def destination_lat @destination_lat end |
#destination_long ⇒ Object
Returns the value of attribute destination_long.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def destination_long @destination_long end |
#destination_name ⇒ Object
Returns the value of attribute destination_name.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def destination_name @destination_name end |
#destination_phone ⇒ Object
Returns the value of attribute destination_phone.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def destination_phone @destination_phone end |
#item ⇒ Object
Returns the value of attribute item.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def item @item end |
#origin_address ⇒ Object
Returns the value of attribute origin_address.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def origin_address @origin_address end |
#origin_address_note ⇒ Object
Returns the value of attribute origin_address_note.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def origin_address_note @origin_address_note end |
#origin_lat ⇒ Object
Returns the value of attribute origin_lat.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def origin_lat @origin_lat end |
#origin_long ⇒ Object
Returns the value of attribute origin_long.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def origin_long @origin_long end |
#origin_name ⇒ Object
Returns the value of attribute origin_name.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def origin_name @origin_name end |
#origin_phone ⇒ Object
Returns the value of attribute origin_phone.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def origin_phone @origin_phone end |
#shipping_price ⇒ Object
Returns the value of attribute shipping_price.
130 131 132 |
# File 'lib/kiriminaja/types/order.rb', line 130 def shipping_price @shipping_price end |
Instance Method Details
#to_h ⇒ Object
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/kiriminaja/types/order.rb', line 157 def to_h { origin_name: @origin_name, origin_phone: @origin_phone, origin_lat: @origin_lat, origin_long: @origin_long, origin_address: @origin_address, origin_address_note: @origin_address_note, destination_name: @destination_name, destination_phone: @destination_phone, destination_lat: @destination_lat, destination_long: @destination_long, destination_address: @destination_address, destination_address_note: @destination_address_note, shipping_price: @shipping_price, item: @item.to_h, } end |