Class: Xrechnung::PartyLegalEntity
- Inherits:
-
Object
- Object
- Xrechnung::PartyLegalEntity
- Includes:
- MemberContainer
- Defined in:
- lib/xrechnung/party_legal_entity.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#to_xml(xml) ⇒ Object
noinspection RubyResolve.
Methods included from MemberContainer
#[], #[]=, included, #initialize
Instance Attribute Details
#company_id ⇒ String
7 |
# File 'lib/xrechnung/party_legal_entity.rb', line 7 member :company_id, type: String |
#registration_name ⇒ String
11 |
# File 'lib/xrechnung/party_legal_entity.rb', line 11 member :registration_name, type: String |
Instance Method Details
#to_xml(xml) ⇒ Object
noinspection RubyResolve
14 15 16 17 18 19 |
# File 'lib/xrechnung/party_legal_entity.rb', line 14 def to_xml(xml) xml.cac :PartyLegalEntity do xml.cbc :RegistrationName, registration_name xml.cbc(:CompanyID, company_id) unless company_id.nil? end end |