Class: RubyXmlNfe::PisAliq
- Inherits:
-
Object
- Object
- RubyXmlNfe::PisAliq
- Defined in:
- lib/ruby_xml_nfe/pis_aliq.rb
Instance Attribute Summary collapse
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#pPIS ⇒ Object
readonly
Returns the value of attribute pPIS.
-
#vBC ⇒ Object
readonly
Returns the value of attribute vBC.
-
#vPIS ⇒ Object
readonly
Returns the value of attribute vPIS.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ PisAliq
constructor
A new instance of PisAliq.
Constructor Details
#initialize(xml, params) ⇒ PisAliq
Returns a new instance of PisAliq.
5 6 7 8 9 10 11 |
# File 'lib/ruby_xml_nfe/pis_aliq.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
#cst ⇒ Object (readonly)
Returns the value of attribute cst.
3 4 5 |
# File 'lib/ruby_xml_nfe/pis_aliq.rb', line 3 def cst @cst end |
#pPIS ⇒ Object (readonly)
Returns the value of attribute pPIS.
3 4 5 |
# File 'lib/ruby_xml_nfe/pis_aliq.rb', line 3 def pPIS @pPIS end |
#vBC ⇒ Object (readonly)
Returns the value of attribute vBC.
3 4 5 |
# File 'lib/ruby_xml_nfe/pis_aliq.rb', line 3 def vBC @vBC end |
#vPIS ⇒ Object (readonly)
Returns the value of attribute vPIS.
3 4 5 |
# File 'lib/ruby_xml_nfe/pis_aliq.rb', line 3 def vPIS @vPIS end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/ruby_xml_nfe/pis_aliq.rb', line 3 def xml @xml end |
Instance Method Details
#build ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/ruby_xml_nfe/pis_aliq.rb', line 13 def build xml.PISAliq do xml.CST cst xml.vBC vBC xml.pPIS pPIS xml.vPIS vPIS end end |