Class: RubyXmlNfe::Icms
- Inherits:
-
Object
- Object
- RubyXmlNfe::Icms
- Defined in:
- lib/ruby_xml_nfe/icms.rb
Instance Attribute Summary collapse
-
#icms00_params ⇒ Object
readonly
Returns the value of attribute icms00_params.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Icms
constructor
A new instance of Icms.
Constructor Details
#initialize(xml, params) ⇒ Icms
Returns a new instance of Icms.
7 8 9 10 |
# File 'lib/ruby_xml_nfe/icms.rb', line 7 def initialize(xml, params) @xml = xml @icms00_params = params[:ICMS00] end |
Instance Attribute Details
#icms00_params ⇒ Object (readonly)
Returns the value of attribute icms00_params.
5 6 7 |
# File 'lib/ruby_xml_nfe/icms.rb', line 5 def icms00_params @icms00_params end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
5 6 7 |
# File 'lib/ruby_xml_nfe/icms.rb', line 5 def xml @xml end |
Instance Method Details
#build ⇒ Object
12 13 14 15 16 17 |
# File 'lib/ruby_xml_nfe/icms.rb', line 12 def build xml.ICMS do icms00 = RubyXmlNfe::Icms00.new(xml, icms00_params) icms00.build end end |