Class: Cadooz::Mutable::OrderPosition

Inherits:
Object
  • Object
show all
Includes:
Mixins
Defined in:
lib/cadooz/models/mutable/order_position.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/cadooz/models/mutable/order_position.rb', line 4

def amount
  @amount
end

#attributesObject

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_numberObject

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

#currencyObject

Returns the value of attribute currency.



4
5
6
# File 'lib/cadooz/models/mutable/order_position.rb', line 4

def currency
  @currency
end

#delivery_addressObject

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_numberObject

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_cardObject

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

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/cadooz/models/mutable/order_position.rb', line 4

def value
  @value
end

#voucher_addressObject

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_editableObject

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_presetObject

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