Class: DuffelAPI::Resources::OrderCancellation
- Inherits:
-
BaseResource
- Object
- BaseResource
- DuffelAPI::Resources::OrderCancellation
- Defined in:
- lib/duffel_api/resources/order_cancellation.rb
Instance Attribute Summary collapse
-
#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.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#refund_amount ⇒ Object
readonly
Returns the value of attribute refund_amount.
-
#refund_currency ⇒ Object
readonly
Returns the value of attribute refund_currency.
-
#refund_to ⇒ Object
readonly
Returns the value of attribute refund_to.
Instance Method Summary collapse
-
#initialize(object, response = nil) ⇒ OrderCancellation
constructor
A new instance of OrderCancellation.
Methods inherited from BaseResource
Constructor Details
#initialize(object, response = nil) ⇒ OrderCancellation
Returns a new instance of OrderCancellation.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 17 def initialize(object, response = nil) @object = object @confirmed_at = object["confirmed_at"] @created_at = object["created_at"] @expires_at = object["expires_at"] @id = object["id"] @live_mode = object["live_mode"] @order_id = object["order_id"] @refund_amount = object["refund_amount"] @refund_currency = object["refund_currency"] @refund_to = object["refund_to"] super(object, response) end |
Instance Attribute Details
#confirmed_at ⇒ Object (readonly)
Returns the value of attribute confirmed_at.
7 8 9 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 7 def confirmed_at @confirmed_at end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 8 def created_at @created_at end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
9 10 11 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 9 def expires_at @expires_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 10 def id @id end |
#live_mode ⇒ Object (readonly)
Returns the value of attribute live_mode.
11 12 13 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 11 def live_mode @live_mode end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
12 13 14 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 12 def order_id @order_id end |
#refund_amount ⇒ Object (readonly)
Returns the value of attribute refund_amount.
13 14 15 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 13 def refund_amount @refund_amount end |
#refund_currency ⇒ Object (readonly)
Returns the value of attribute refund_currency.
14 15 16 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 14 def refund_currency @refund_currency end |
#refund_to ⇒ Object (readonly)
Returns the value of attribute refund_to.
15 16 17 |
# File 'lib/duffel_api/resources/order_cancellation.rb', line 15 def refund_to @refund_to end |