Class: RubyXmlNfe::InfAdic

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_xml_nfe/inf_adic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, params) ⇒ InfAdic

Returns a new instance of InfAdic.



5
6
7
8
9
# File 'lib/ruby_xml_nfe/inf_adic.rb', line 5

def initialize(xml, params)
  @xml = xml
  @infAdFisco = params[:infAdFisco]
  @infCpl = params[:infCpl]
end

Instance Attribute Details

#infAdFiscoObject (readonly)

Returns the value of attribute infAdFisco.



3
4
5
# File 'lib/ruby_xml_nfe/inf_adic.rb', line 3

def infAdFisco
  @infAdFisco
end

#infCplObject (readonly)

Returns the value of attribute infCpl.



3
4
5
# File 'lib/ruby_xml_nfe/inf_adic.rb', line 3

def infCpl
  @infCpl
end

#xmlObject (readonly)

Returns the value of attribute xml.



3
4
5
# File 'lib/ruby_xml_nfe/inf_adic.rb', line 3

def xml
  @xml
end

Instance Method Details

#buildObject



11
12
13
14
15
16
# File 'lib/ruby_xml_nfe/inf_adic.rb', line 11

def build
  xml.infAdic do
    xml.infAdFisco infAdFisco
    xml.infCpl infCpl
  end
end