Class: DuffelAPI::Resources::OrderChange
- Inherits:
-
BaseResource
- Object
- BaseResource
- DuffelAPI::Resources::OrderChange
- Defined in:
- lib/duffel_api/resources/order_change.rb
Instance Attribute Summary collapse
-
#change_total_amount ⇒ Object
readonly
Returns the value of attribute change_total_amount.
-
#change_total_currency ⇒ Object
readonly
Returns the value of attribute change_total_currency.
-
#confirmed_at ⇒ Object
readonly
Returns the value of attribute confirmed_at.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#live_mode ⇒ Object
readonly
Returns the value of attribute live_mode.
-
#new_total_amount ⇒ Object
readonly
Returns the value of attribute new_total_amount.
-
#new_total_currency ⇒ Object
readonly
Returns the value of attribute new_total_currency.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#penalty_total_amount ⇒ Object
readonly
Returns the value of attribute penalty_total_amount.
-
#penalty_total_currency ⇒ Object
readonly
Returns the value of attribute penalty_total_currency.
-
#refund_to ⇒ Object
readonly
Returns the value of attribute refund_to.
-
#slices ⇒ Object
readonly
Returns the value of attribute slices.
Instance Method Summary collapse
-
#initialize(object, response = nil) ⇒ OrderChange
constructor
A new instance of OrderChange.
Methods inherited from BaseResource
Constructor Details
#initialize(object, response = nil) ⇒ OrderChange
Returns a new instance of OrderChange.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/duffel_api/resources/order_change.rb', line 22 def initialize(object, response = nil) @object = object @change_total_amount = object["change_total_amount"] @change_total_currency = object["change_total_currency"] @confirmed_at = object["confirmed_at"] @created_at = object["created_at"] @expires_at = object["expires_at"] @id = object["id"] @live_mode = object["live_mode"] @new_total_amount = object["new_total_amount"] @new_total_currency = object["new_total_currency"] @order_id = object["order_id"] @penalty_total_amount = object["penalty_total_amount"] @penalty_total_currency = object["penalty_total_currency"] @refund_to = object["refund_to"] @slices = object["slices"] super(object, response) end |
Instance Attribute Details
#change_total_amount ⇒ Object (readonly)
Returns the value of attribute change_total_amount.
7 8 9 |
# File 'lib/duffel_api/resources/order_change.rb', line 7 def change_total_amount @change_total_amount end |
#change_total_currency ⇒ Object (readonly)
Returns the value of attribute change_total_currency.
8 9 10 |
# File 'lib/duffel_api/resources/order_change.rb', line 8 def change_total_currency @change_total_currency end |
#confirmed_at ⇒ Object (readonly)
Returns the value of attribute confirmed_at.
9 10 11 |
# File 'lib/duffel_api/resources/order_change.rb', line 9 def confirmed_at @confirmed_at end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
10 11 12 |
# File 'lib/duffel_api/resources/order_change.rb', line 10 def created_at @created_at end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
11 12 13 |
# File 'lib/duffel_api/resources/order_change.rb', line 11 def expires_at @expires_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/duffel_api/resources/order_change.rb', line 12 def id @id end |
#live_mode ⇒ Object (readonly)
Returns the value of attribute live_mode.
13 14 15 |
# File 'lib/duffel_api/resources/order_change.rb', line 13 def live_mode @live_mode end |
#new_total_amount ⇒ Object (readonly)
Returns the value of attribute new_total_amount.
14 15 16 |
# File 'lib/duffel_api/resources/order_change.rb', line 14 def new_total_amount @new_total_amount end |
#new_total_currency ⇒ Object (readonly)
Returns the value of attribute new_total_currency.
15 16 17 |
# File 'lib/duffel_api/resources/order_change.rb', line 15 def new_total_currency @new_total_currency end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
16 17 18 |
# File 'lib/duffel_api/resources/order_change.rb', line 16 def order_id @order_id end |
#penalty_total_amount ⇒ Object (readonly)
Returns the value of attribute penalty_total_amount.
17 18 19 |
# File 'lib/duffel_api/resources/order_change.rb', line 17 def penalty_total_amount @penalty_total_amount end |
#penalty_total_currency ⇒ Object (readonly)
Returns the value of attribute penalty_total_currency.
18 19 20 |
# File 'lib/duffel_api/resources/order_change.rb', line 18 def penalty_total_currency @penalty_total_currency end |
#refund_to ⇒ Object (readonly)
Returns the value of attribute refund_to.
19 20 21 |
# File 'lib/duffel_api/resources/order_change.rb', line 19 def refund_to @refund_to end |
#slices ⇒ Object (readonly)
Returns the value of attribute slices.
20 21 22 |
# File 'lib/duffel_api/resources/order_change.rb', line 20 def slices @slices end |