Class: Cadooz::Mutable::Order
- Inherits:
-
Object
- Object
- Cadooz::Mutable::Order
- Includes:
- Mixins
- Defined in:
- lib/cadooz/models/mutable/order.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#commission ⇒ Object
Returns the value of attribute commission.
-
#cost_owner ⇒ Object
Returns the value of attribute cost_owner.
-
#cost_unit ⇒ Object
Returns the value of attribute cost_unit.
-
#credit_or_number ⇒ Object
Returns the value of attribute credit_or_number.
-
#customer_reference_number ⇒ Object
Returns the value of attribute customer_reference_number.
-
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
-
#generation_profile ⇒ Object
Returns the value of attribute generation_profile.
-
#greeting_card ⇒ Object
Returns the value of attribute greeting_card.
-
#invoice_address ⇒ Object
Returns the value of attribute invoice_address.
-
#invoice_information ⇒ Object
Returns the value of attribute invoice_information.
-
#language ⇒ Object
Returns the value of attribute language.
-
#order_attributes ⇒ Object
Returns the value of attribute order_attributes.
-
#order_description ⇒ Object
Returns the value of attribute order_description.
-
#order_positions ⇒ Object
Returns the value of attribute order_positions.
-
#payment_informations ⇒ Object
Returns the value of attribute payment_informations.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#send_mail ⇒ Object
Returns the value of attribute send_mail.
-
#test ⇒ Object
Returns the value of attribute test.
-
#website ⇒ Object
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Order
constructor
A new instance of Order.
Methods included from Mixins
#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize
Constructor Details
#initialize(args = {}) ⇒ Order
Returns a new instance of Order.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/cadooz/models/mutable/order.rb', line 10 def initialize(args={}) @client = args[:client] @commission = args[:commission] @cost_owner = args[:cost_owner] @cost_unit = args[:cost_unit] @credit_or_number = args[:credit_or_number] @customer_reference_number = args[:customer_reference_number] @delivery_address = args[:delivery_address] # Cadooz::Mutable::Address.new @generation_profile = args[:generation_profile] @greeting_card = args[:greeting_card] # Cadooz::Mutable::GreetingCard.new @invoice_address = args[:invoice_address] # Cadooz::Mutable::Address.new @invoice_information = Array(args[:invoice_information]) # Cadooz::Mutable::InvoiceInformation @language = args[:language] @order_attributes = args[:order_attributes] @order_description = args[:order_description] @order_positions = Array(args[:order_positions]) # Cadooz::Mutable::OrderPosition @payment_informations = Array(args[:payment_informations]) # Cadooz::Mutable::Payment @queue = args[:queue] @send_mail = args[:send_mail] @test = args[:test] @website = args[:website] end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def client @client end |
#commission ⇒ Object
Returns the value of attribute commission.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def commission @commission end |
#cost_owner ⇒ Object
Returns the value of attribute cost_owner.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def cost_owner @cost_owner end |
#cost_unit ⇒ Object
Returns the value of attribute cost_unit.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def cost_unit @cost_unit end |
#credit_or_number ⇒ Object
Returns the value of attribute credit_or_number.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def credit_or_number @credit_or_number end |
#customer_reference_number ⇒ Object
Returns the value of attribute customer_reference_number.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def customer_reference_number @customer_reference_number end |
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def delivery_address @delivery_address end |
#generation_profile ⇒ Object
Returns the value of attribute generation_profile.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def generation_profile @generation_profile end |
#greeting_card ⇒ Object
Returns the value of attribute greeting_card.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def greeting_card @greeting_card end |
#invoice_address ⇒ Object
Returns the value of attribute invoice_address.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def invoice_address @invoice_address end |
#invoice_information ⇒ Object
Returns the value of attribute invoice_information.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def invoice_information @invoice_information end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def language @language end |
#order_attributes ⇒ Object
Returns the value of attribute order_attributes.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def order_attributes @order_attributes end |
#order_description ⇒ Object
Returns the value of attribute order_description.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def order_description @order_description end |
#order_positions ⇒ Object
Returns the value of attribute order_positions.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def order_positions @order_positions end |
#payment_informations ⇒ Object
Returns the value of attribute payment_informations.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def payment_informations @payment_informations end |
#queue ⇒ Object
Returns the value of attribute queue.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def queue @queue end |
#send_mail ⇒ Object
Returns the value of attribute send_mail.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def send_mail @send_mail end |
#test ⇒ Object
Returns the value of attribute test.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def test @test end |
#website ⇒ Object
Returns the value of attribute website.
4 5 6 |
# File 'lib/cadooz/models/mutable/order.rb', line 4 def website @website end |