Class: RubyXmlNfe::Ipi
- Inherits:
-
Object
- Object
- RubyXmlNfe::Ipi
- Defined in:
- lib/ruby_xml_nfe/ipi.rb
Instance Attribute Summary collapse
-
#cEnq ⇒ Object
readonly
Returns the value of attribute cEnq.
-
#ipi_int_params ⇒ Object
readonly
Returns the value of attribute ipi_int_params.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Ipi
constructor
A new instance of Ipi.
Constructor Details
#initialize(xml, params) ⇒ Ipi
Returns a new instance of Ipi.
6 7 8 9 10 |
# File 'lib/ruby_xml_nfe/ipi.rb', line 6 def initialize(xml, params) @xml = xml @cEnq = params[:cEnq] @ipi_int_params = params[:IPINT] end |
Instance Attribute Details
#cEnq ⇒ Object (readonly)
Returns the value of attribute cEnq.
5 6 7 |
# File 'lib/ruby_xml_nfe/ipi.rb', line 5 def cEnq @cEnq end |
#ipi_int_params ⇒ Object (readonly)
Returns the value of attribute ipi_int_params.
5 6 7 |
# File 'lib/ruby_xml_nfe/ipi.rb', line 5 def ipi_int_params @ipi_int_params end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
5 6 7 |
# File 'lib/ruby_xml_nfe/ipi.rb', line 5 def xml @xml end |
Instance Method Details
#build ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/ruby_xml_nfe/ipi.rb', line 12 def build xml.IPI do xml.cEnq cEnq ipi_int = RubyXmlNfe::IpiInt.new(xml, ipi_int_params) ipi_int.build end end |