Class: RubyXmlNfe::Pis
- Inherits:
-
Object
- Object
- RubyXmlNfe::Pis
- Defined in:
- lib/ruby_xml_nfe/pis.rb
Instance Attribute Summary collapse
-
#pis_aliq_params ⇒ Object
readonly
Returns the value of attribute pis_aliq_params.
-
#pis_outr_params ⇒ Object
readonly
Returns the value of attribute pis_outr_params.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Pis
constructor
A new instance of Pis.
Constructor Details
#initialize(xml, params) ⇒ Pis
Returns a new instance of Pis.
8 9 10 11 12 |
# File 'lib/ruby_xml_nfe/pis.rb', line 8 def initialize(xml, params) @xml = xml @pis_aliq_params = params[:PISAliq] @pis_outr_params = params[:PISOutr] end |
Instance Attribute Details
#pis_aliq_params ⇒ Object (readonly)
Returns the value of attribute pis_aliq_params.
6 7 8 |
# File 'lib/ruby_xml_nfe/pis.rb', line 6 def pis_aliq_params @pis_aliq_params end |
#pis_outr_params ⇒ Object (readonly)
Returns the value of attribute pis_outr_params.
6 7 8 |
# File 'lib/ruby_xml_nfe/pis.rb', line 6 def pis_outr_params @pis_outr_params end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
6 7 8 |
# File 'lib/ruby_xml_nfe/pis.rb', line 6 def xml @xml end |
Instance Method Details
#build ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ruby_xml_nfe/pis.rb', line 14 def build xml.PIS do if pis_aliq_params pis_aliq = RubyXmlNfe::PisAliq.new(xml, pis_aliq_params) pis_aliq.build end if pis_outr_params pis_outr = RubyXmlNfe::PisOutr.new(xml, pis_outr_params) pis_outr.build end end end |