Class: Ticketbai::Nodes::Software

Inherits:
Object
  • Object
show all
Defined in:
lib/ticketbai/nodes/software.rb

Instance Method Summary collapse

Instance Method Details

#build_xml(node) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/ticketbai/nodes/software.rb', line 4

def build_xml(node)
  node = Nokogiri::XML::Builder.new if node.nil?
  node.Software do |xml|
    xml.LicenciaTBAI Ticketbai.config.license_key
    xml.EntidadDesarrolladora do
      xml.NIF Ticketbai.config.developer_company_nif
    end
    xml.Nombre Ticketbai.config.app_name
    xml.Version Ticketbai.config.app_version
  end
end