Class: RubyXmlNfe::CofinsOutr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, params) ⇒ CofinsOutr

Returns a new instance of CofinsOutr.



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

def initialize(xml, params)
  @xml = xml
  @cst = params[:CST]
  @vBC = params[:vBC]
  @pCOFINS = params[:pCOFINS]
  @vCOFINS = params[:vCOFINS]
end

Instance Attribute Details

#cstObject (readonly)

Returns the value of attribute cst.



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

def cst
  @cst
end

#pCOFINSObject (readonly)

Returns the value of attribute pCOFINS.



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

def pCOFINS
  @pCOFINS
end

#vBCObject (readonly)

Returns the value of attribute vBC.



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

def vBC
  @vBC
end

#vCOFINSObject (readonly)

Returns the value of attribute vCOFINS.



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

def vCOFINS
  @vCOFINS
end

#xmlObject (readonly)

Returns the value of attribute xml.



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

def xml
  @xml
end

Instance Method Details

#buildObject



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

def build
  xml.COFINSOutr do
    xml.CST cst
    xml.vBC vBC
    xml.pCOFINS pCOFINS
    xml.vCOFINS vCOFINS
  end
end