Class: Cookie::Models::OrderResponse::Order
- Inherits:
-
Object
- Object
- Cookie::Models::OrderResponse::Order
- Defined in:
- lib/cookie/models/order_response.rb
Overview
Individual order details including purchase and payment information
Defined Under Namespace
Classes: PaymentAddress
Instance Attribute Summary collapse
-
#date_actioned ⇒ Object
readonly
Returns the value of attribute date_actioned.
-
#number_purchased ⇒ Object
readonly
Returns the value of attribute number_purchased.
-
#order_number ⇒ Object
readonly
Returns the value of attribute order_number.
-
#order_time_display ⇒ Object
readonly
Returns the value of attribute order_time_display.
-
#payment_address ⇒ Object
readonly
Returns the value of attribute payment_address.
-
#sales_application ⇒ Object
readonly
Returns the value of attribute sales_application.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Order
constructor
A new instance of Order.
Constructor Details
#initialize(attributes) ⇒ Order
Returns a new instance of Order.
31 32 33 34 35 36 37 38 |
# File 'lib/cookie/models/order_response.rb', line 31 def initialize(attributes) @date_actioned = attributes["dateActioned"] @number_purchased = attributes["numberPurchased"] @order_number = attributes["orderNumber"] @order_time_display = attributes["orderTimeDisplay"] @payment_address = PaymentAddress.new(attributes["paymentAddress"]) @sales_application = attributes["salesApplication"] end |
Instance Attribute Details
#date_actioned ⇒ Object (readonly)
Returns the value of attribute date_actioned.
28 29 30 |
# File 'lib/cookie/models/order_response.rb', line 28 def date_actioned @date_actioned end |
#number_purchased ⇒ Object (readonly)
Returns the value of attribute number_purchased.
28 29 30 |
# File 'lib/cookie/models/order_response.rb', line 28 def number_purchased @number_purchased end |
#order_number ⇒ Object (readonly)
Returns the value of attribute order_number.
28 29 30 |
# File 'lib/cookie/models/order_response.rb', line 28 def order_number @order_number end |
#order_time_display ⇒ Object (readonly)
Returns the value of attribute order_time_display.
28 29 30 |
# File 'lib/cookie/models/order_response.rb', line 28 def order_time_display @order_time_display end |
#payment_address ⇒ Object (readonly)
Returns the value of attribute payment_address.
28 29 30 |
# File 'lib/cookie/models/order_response.rb', line 28 def payment_address @payment_address end |
#sales_application ⇒ Object (readonly)
Returns the value of attribute sales_application.
28 29 30 |
# File 'lib/cookie/models/order_response.rb', line 28 def sales_application @sales_application end |