Class: RubyXmlNfe::IpiInt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, params) ⇒ IpiInt

Returns a new instance of IpiInt.



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

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

Instance Attribute Details

#cstObject (readonly)

Returns the value of attribute cst.



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

def cst
  @cst
end

#xmlObject (readonly)

Returns the value of attribute xml.



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

def xml
  @xml
end

Instance Method Details

#buildObject



10
11
12
13
14
# File 'lib/ruby_xml_nfe/ipi_int.rb', line 10

def build
  xml.IPINT do
    xml.CST cst
  end
end