Class: RubyXmlNfe::Ii

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, params) ⇒ Ii

Returns a new instance of Ii.



5
6
7
8
9
10
11
# File 'lib/ruby_xml_nfe/ii.rb', line 5

def initialize(xml, params)
  @xml = xml
  @vBC = params[:vBC]
  @vDespAdu = params[:vDespAdu]
  @vII = params[:vII]
  @vIOF = params[:vIOF]
end

Instance Attribute Details

#vBCObject (readonly)

Returns the value of attribute vBC.



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

def vBC
  @vBC
end

#vDespAduObject (readonly)

Returns the value of attribute vDespAdu.



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

def vDespAdu
  @vDespAdu
end

#vIIObject (readonly)

Returns the value of attribute vII.



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

def vII
  @vII
end

#vIOFObject (readonly)

Returns the value of attribute vIOF.



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

def vIOF
  @vIOF
end

#xmlObject (readonly)

Returns the value of attribute xml.



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

def xml
  @xml
end

Instance Method Details

#buildObject



13
14
15
16
17
18
19
20
# File 'lib/ruby_xml_nfe/ii.rb', line 13

def build
  xml.II do
    xml.vBC vBC
    xml.vDespAdu vDespAdu
    xml.vII vII
    xml.vIOF vIOF
  end
end