Class: Xrechnung::PartyIdentification

Inherits:
Object
  • Object
show all
Includes:
MemberContainer
Defined in:
lib/xrechnung/party_identification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MemberContainer

#[], #[]=, included, #initialize

Instance Attribute Details

#idString

Returns:

  • (String)


7
# File 'lib/xrechnung/party_identification.rb', line 7

member :id, type: String

#scheme_idString

Returns:

  • (String)


11
# File 'lib/xrechnung/party_identification.rb', line 11

member :scheme_id, type: String, optional: true

Instance Method Details

#to_xml(xml) ⇒ Object

noinspection RubyResolve



14
15
16
17
18
19
20
21
22
# File 'lib/xrechnung/party_identification.rb', line 14

def to_xml(xml)
  xml.cac :PartyIdentification do
    if scheme_id
      xml.cbc :ID, id, schemeID: scheme_id
    else
      xml.cbc :ID, id
    end
  end
end