Class: XmlConv::Model::Party
- Inherits:
-
Object
- Object
- XmlConv::Model::Party
- Includes:
- IdContainer, PartyContainer
- Defined in:
- lib/xmlconv/model/party.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#name ⇒ Object
Returns the value of attribute name.
-
#role ⇒ Object
Returns the value of attribute role.
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
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
10 11 12 |
# File 'lib/xmlconv/model/party.rb', line 10 def address @address end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/xmlconv/model/party.rb', line 10 def name @name end |
#role ⇒ Object
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_id ⇒ Object
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 |