Class: RubyXmlNfe::CofinsAliq
- Inherits:
-
Object
- Object
- RubyXmlNfe::CofinsAliq
- Defined in:
- lib/ruby_xml_nfe/cofins_aliq.rb
Instance Attribute Summary collapse
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#pCOFINS ⇒ Object
readonly
Returns the value of attribute pCOFINS.
-
#vBC ⇒ Object
readonly
Returns the value of attribute vBC.
-
#vCOFINS ⇒ Object
readonly
Returns the value of attribute vCOFINS.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ CofinsAliq
constructor
A new instance of CofinsAliq.
Constructor Details
#initialize(xml, params) ⇒ CofinsAliq
Returns a new instance of CofinsAliq.
5 6 7 8 9 10 11 |
# File 'lib/ruby_xml_nfe/cofins_aliq.rb', line 5 def initialize(xml, params) @xml = xml @cst = params[:CST] @vBC = params[:vBC] @pCOFINS = params[:pCOFINS] @vCOFINS = params[:vCOFINS] end |
Instance Attribute Details
#cst ⇒ Object (readonly)
Returns the value of attribute cst.
3 4 5 |
# File 'lib/ruby_xml_nfe/cofins_aliq.rb', line 3 def cst @cst end |
#pCOFINS ⇒ Object (readonly)
Returns the value of attribute pCOFINS.
3 4 5 |
# File 'lib/ruby_xml_nfe/cofins_aliq.rb', line 3 def pCOFINS @pCOFINS end |
#vBC ⇒ Object (readonly)
Returns the value of attribute vBC.
3 4 5 |
# File 'lib/ruby_xml_nfe/cofins_aliq.rb', line 3 def vBC @vBC end |
#vCOFINS ⇒ Object (readonly)
Returns the value of attribute vCOFINS.
3 4 5 |
# File 'lib/ruby_xml_nfe/cofins_aliq.rb', line 3 def vCOFINS @vCOFINS end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/ruby_xml_nfe/cofins_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/cofins_aliq.rb', line 13 def build xml.COFINSAliq do xml.CST cst xml.vBC vBC xml.pCOFINS pCOFINS xml.vCOFINS vCOFINS end end |