Class: RubyXmlNfe::CofinsOutr
- Inherits:
-
Object
- Object
- RubyXmlNfe::CofinsOutr
- Defined in:
- lib/ruby_xml_nfe/cofins_outr.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) ⇒ CofinsOutr
constructor
A new instance of CofinsOutr.
Constructor Details
#initialize(xml, params) ⇒ CofinsOutr
Returns a new instance of CofinsOutr.
5 6 7 8 9 10 11 |
# File 'lib/ruby_xml_nfe/cofins_outr.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_outr.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_outr.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_outr.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_outr.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_outr.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_outr.rb', line 13 def build xml.COFINSOutr do xml.CST cst xml.vBC vBC xml.pCOFINS pCOFINS xml.vCOFINS vCOFINS end end |