Class: RubyXmlNfe::Icms00
- Inherits:
-
Object
- Object
- RubyXmlNfe::Icms00
- Defined in:
- lib/ruby_xml_nfe/icms00.rb
Instance Attribute Summary collapse
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#modBC ⇒ Object
readonly
Returns the value of attribute modBC.
-
#orig ⇒ Object
readonly
Returns the value of attribute orig.
-
#pFCP ⇒ Object
readonly
Returns the value of attribute pFCP.
-
#pICMS ⇒ Object
readonly
Returns the value of attribute pICMS.
-
#vBC ⇒ Object
readonly
Returns the value of attribute vBC.
-
#vFCP ⇒ Object
readonly
Returns the value of attribute vFCP.
-
#vICMS ⇒ Object
readonly
Returns the value of attribute vICMS.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Icms00
constructor
A new instance of Icms00.
Constructor Details
#initialize(xml, params) ⇒ Icms00
Returns a new instance of Icms00.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 5 def initialize(xml, params) @xml = xml @orig = params[:orig] @cst = params[:CST] @modBC = params[:modBC] @vBC = params[:vBC] @pICMS = params[:pICMS] @vICMS = params[:vICMS] @pFCP = params[:pFCP] @vFCP = params[:vFCP] end |
Instance Attribute Details
#cst ⇒ Object (readonly)
Returns the value of attribute cst.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def cst @cst end |
#modBC ⇒ Object (readonly)
Returns the value of attribute modBC.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def modBC @modBC end |
#orig ⇒ Object (readonly)
Returns the value of attribute orig.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def orig @orig end |
#pFCP ⇒ Object (readonly)
Returns the value of attribute pFCP.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def pFCP @pFCP end |
#pICMS ⇒ Object (readonly)
Returns the value of attribute pICMS.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def pICMS @pICMS end |
#vBC ⇒ Object (readonly)
Returns the value of attribute vBC.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def vBC @vBC end |
#vFCP ⇒ Object (readonly)
Returns the value of attribute vFCP.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def vFCP @vFCP end |
#vICMS ⇒ Object (readonly)
Returns the value of attribute vICMS.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def vICMS @vICMS end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 3 def xml @xml end |
Instance Method Details
#build ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ruby_xml_nfe/icms00.rb', line 17 def build xml.ICMS00 do xml.orig orig xml.CST cst xml.modBC modBC xml.vBC vBC xml.pICMS pICMS xml.vICMS vICMS xml.pFCP pFCP if pFCP xml.vFCP vFCP if vFCP end end |