Class: Cadooz::Mutable::OrderPosition
- Inherits:
-
Object
- Object
- Cadooz::Mutable::OrderPosition
- Includes:
- Mixins
- Defined in:
- lib/cadooz/models/mutable/order_position.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#cadooz_product_number ⇒ Object
Returns the value of attribute cadooz_product_number.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
-
#external_reference_number ⇒ Object
Returns the value of attribute external_reference_number.
-
#greeting_card ⇒ Object
Returns the value of attribute greeting_card.
-
#value ⇒ Object
Returns the value of attribute value.
-
#voucher_address ⇒ Object
Returns the value of attribute voucher_address.
-
#voucher_address_editable ⇒ Object
Returns the value of attribute voucher_address_editable.
-
#voucher_address_preset ⇒ Object
Returns the value of attribute voucher_address_preset.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ OrderPosition
constructor
A new instance of OrderPosition.
Methods included from Mixins
#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize
Constructor Details
#initialize(args = {}) ⇒ OrderPosition
Returns a new instance of OrderPosition.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 9 def initialize(args={}) @amount = args[:amount] @attributes = args[:attributes] @cadooz_product_number = args[:cadooz_product_number] @currency = args[:currency] @delivery_address = args[:delivery_address] @external_reference_number = args[:external_reference_number] @greeting_card = args[:greeting_card] @value = args[:value] @voucher_address = args[:voucher_address] @voucher_address_editable = args[:voucher_address_editable] @voucher_address_preset = args[:voucher_address_preset] end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def amount @amount end |
#attributes ⇒ Object
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def attributes @attributes end |
#cadooz_product_number ⇒ Object
Returns the value of attribute cadooz_product_number.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def cadooz_product_number @cadooz_product_number end |
#currency ⇒ Object
Returns the value of attribute currency.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def currency @currency end |
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def delivery_address @delivery_address end |
#external_reference_number ⇒ Object
Returns the value of attribute external_reference_number.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def external_reference_number @external_reference_number end |
#greeting_card ⇒ Object
Returns the value of attribute greeting_card.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def greeting_card @greeting_card end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def value @value end |
#voucher_address ⇒ Object
Returns the value of attribute voucher_address.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def voucher_address @voucher_address end |
#voucher_address_editable ⇒ Object
Returns the value of attribute voucher_address_editable.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def voucher_address_editable @voucher_address_editable end |
#voucher_address_preset ⇒ Object
Returns the value of attribute voucher_address_preset.
4 5 6 |
# File 'lib/cadooz/models/mutable/order_position.rb', line 4 def voucher_address_preset @voucher_address_preset end |