module XmlConv::Model::PartyContainer
Attributes
bill_to[RW]
customer[RW]
employee[RW]
seller[RW]
ship_to[RW]
Public Instance Methods
add_party(party)
click to toggle source
# File lib/xmlconv/model/party_container.rb, line 8 def add_party(party) if((role = party.role) && !role.empty?) role = role.gsub(/\B[A-Z]/, '_\&') instance_variable_set("@#{role.downcase}", party) self.parties.push(party) end end
parties()
click to toggle source
# File lib/xmlconv/model/party_container.rb, line 15 def parties @parties ||= [] end