Class: Xrechnung::Party
- Inherits:
-
Object
- Object
- Xrechnung::Party
- Includes:
- MemberContainer
- Defined in:
- lib/xrechnung/party.rb
Instance Attribute Summary collapse
- #contact ⇒ Xrechnung::Contact
- #name ⇒ String
-
#nested ⇒ Object
Returns the value of attribute nested.
- #party_identification ⇒ Xrechnung::PartyIdentification
- #party_legal_entity ⇒ Xrechnung::PartyLegalEntity
- #party_tax_scheme ⇒ Xrechnung::PartyTaxScheme
- #postal_address ⇒ Xrechnung::PostalAddress
Instance Method Summary collapse
-
#initialize(nested: true, **kwargs) ⇒ Party
constructor
A new instance of Party.
-
#to_xml(xml) ⇒ Object
noinspection RubyResolve.
Methods included from MemberContainer
Constructor Details
#initialize(nested: true, **kwargs) ⇒ Party
Returns a new instance of Party.
31 32 33 34 |
# File 'lib/xrechnung/party.rb', line 31 def initialize(nested: true, **kwargs) super(**kwargs) self.nested = nested end |
Instance Attribute Details
#contact ⇒ Xrechnung::Contact
27 |
# File 'lib/xrechnung/party.rb', line 27 member :contact, type: Xrechnung::Contact |
#name ⇒ String
7 |
# File 'lib/xrechnung/party.rb', line 7 member :name, type: String |
#nested ⇒ Object
Returns the value of attribute nested.
29 30 31 |
# File 'lib/xrechnung/party.rb', line 29 def nested @nested end |
#party_identification ⇒ Xrechnung::PartyIdentification
15 |
# File 'lib/xrechnung/party.rb', line 15 member :party_identification, type: Xrechnung::PartyIdentification |
#party_legal_entity ⇒ Xrechnung::PartyLegalEntity
23 |
# File 'lib/xrechnung/party.rb', line 23 member :party_legal_entity, type: Xrechnung::PartyLegalEntity |
#party_tax_scheme ⇒ Xrechnung::PartyTaxScheme
19 |
# File 'lib/xrechnung/party.rb', line 19 member :party_tax_scheme, type: Xrechnung::PartyTaxScheme |
#postal_address ⇒ Xrechnung::PostalAddress
11 |
# File 'lib/xrechnung/party.rb', line 11 member :postal_address, type: Xrechnung::PostalAddress |
Instance Method Details
#to_xml(xml) ⇒ Object
noinspection RubyResolve
37 38 39 40 41 42 43 44 45 |
# File 'lib/xrechnung/party.rb', line 37 def to_xml(xml) if nested xml.cac :Party do party_body(xml) end else party_body(xml) end end |