Class: RubyXmlNfe::IpiInt
- Inherits:
-
Object
- Object
- RubyXmlNfe::IpiInt
- Defined in:
- lib/ruby_xml_nfe/ipi_int.rb
Instance Attribute Summary collapse
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ IpiInt
constructor
A new instance of IpiInt.
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
#cst ⇒ Object (readonly)
Returns the value of attribute cst.
3 4 5 |
# File 'lib/ruby_xml_nfe/ipi_int.rb', line 3 def cst @cst end |
#xml ⇒ Object (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
#build ⇒ Object
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 |