Class: XmlConv::Model::Party

Inherits:
Object
  • Object
show all
Includes:
IdContainer, PartyContainer
Defined in:
lib/xmlconv/model/party.rb

Instance Attribute Summary collapse

Attributes included from PartyContainer

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

Instance Method Summary collapse

Methods included from IdContainer

#acc_id, #add_id, #id_table, #ids

Methods included from PartyContainer

#add_party, #parties

Instance Attribute Details

#addressObject

Returns the value of attribute address.



10
11
12
# File 'lib/xmlconv/model/party.rb', line 10

def address
  @address
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/xmlconv/model/party.rb', line 10

def name
  @name
end

#roleObject

Returns the value of attribute role.



10
11
12
# File 'lib/xmlconv/model/party.rb', line 10

def role
  @role
end

Instance Method Details

#party_idObject



13
14
15
16
17
# File 'lib/xmlconv/model/party.rb', line 13

def party_id
	sorted = self.ids.sort
	domain, value = sorted.first
	value
end