Class: XmlConv::Model::Transaction

Inherits:
Object
  • Object
show all
Includes:
FreeTextContainer, IdContainer, ItemContainer, PartyContainer, PriceContainer
Defined in:
lib/xmlconv/model/transaction.rb

Direct Known Subclasses

Delivery, Invoice

Instance Attribute Summary collapse

Attributes included from PartyContainer

#bill_to, #customer, #employee, #seller, #ship_to

Attributes included from FreeTextContainer

#free_text

Instance Method Summary collapse

Methods included from PriceContainer

#add_price, #get_price, #prices

Methods included from PartyContainer

#add_party, #parties

Methods included from FreeTextContainer

#add_free_text

Methods included from ItemContainer

#add_item, #items

Methods included from IdContainer

#acc_id, #add_id, #id_table, #ids

Instance Attribute Details

#agreementObject

Returns the value of attribute agreement.



18
19
20
# File 'lib/xmlconv/model/transaction.rb', line 18

def agreement
  @agreement
end

#statusObject

Returns the value of attribute status.



18
19
20
# File 'lib/xmlconv/model/transaction.rb', line 18

def status
  @status
end

#status_dateObject

Returns the value of attribute status_date.



18
19
20
# File 'lib/xmlconv/model/transaction.rb', line 18

def status_date
  @status_date
end

#transport_costObject

Returns the value of attribute transport_cost.



18
19
20
# File 'lib/xmlconv/model/transaction.rb', line 18

def transport_cost
  @transport_cost
end

Instance Method Details

#customer_idObject



20
21
22
# File 'lib/xmlconv/model/transaction.rb', line 20

def customer_id
	self.id_table['customer']
end

#reference_idObject



23
24
25
# File 'lib/xmlconv/model/transaction.rb', line 23

def reference_id
	self.id_table['acc']
end