Class: Xrechnung::Contact

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MemberContainer

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

Instance Attribute Details

#electronic_mailString

Returns:

  • (String)


15
# File 'lib/xrechnung/contact.rb', line 15

member :electronic_mail, type: String

#nameString

Returns:

  • (String)


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

member :name, type: String

#telephoneString

Returns:

  • (String)


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

member :telephone, type: String

Instance Method Details

#to_xml(xml) ⇒ Object

noinspection RubyResolve



18
19
20
21
22
23
24
# File 'lib/xrechnung/contact.rb', line 18

def to_xml(xml)
  xml.cac :Contact do
    xml.cbc :Name, name
    xml.cbc :Telephone, telephone
    xml.cbc :ElectronicMail, electronic_mail
  end
end