Class: RubyXmlNfe::PisOutr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, params) ⇒ PisOutr

Returns a new instance of PisOutr.



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

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

Instance Attribute Details

#cstObject (readonly)

Returns the value of attribute cst.



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

def cst
  @cst
end

#pPISObject (readonly)

Returns the value of attribute pPIS.



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

def pPIS
  @pPIS
end

#vBCObject (readonly)

Returns the value of attribute vBC.



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

def vBC
  @vBC
end

#vPISObject (readonly)

Returns the value of attribute vPIS.



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

def vPIS
  @vPIS
end

#xmlObject (readonly)

Returns the value of attribute xml.



3
4
5
# File 'lib/ruby_xml_nfe/pis_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/pis_outr.rb', line 13

def build
  xml.PISOutr do
    xml.CST cst
    xml.vBC vBC
    xml.pPIS pPIS
    xml.vPIS vPIS
  end
end