Class: RubyXmlNfe::AutXml
- Inherits:
-
Object
- Object
- RubyXmlNfe::AutXml
- Defined in:
- lib/ruby_xml_nfe/aut_xml.rb
Instance Attribute Summary collapse
-
#cnpj ⇒ Object
readonly
Returns the value of attribute cnpj.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ AutXml
constructor
A new instance of AutXml.
Constructor Details
#initialize(xml, params) ⇒ AutXml
Returns a new instance of AutXml.
5 6 7 8 |
# File 'lib/ruby_xml_nfe/aut_xml.rb', line 5 def initialize(xml, params) @xml = xml @cnpj = params[:CNPJ] end |
Instance Attribute Details
#cnpj ⇒ Object (readonly)
Returns the value of attribute cnpj.
3 4 5 |
# File 'lib/ruby_xml_nfe/aut_xml.rb', line 3 def cnpj @cnpj end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/ruby_xml_nfe/aut_xml.rb', line 3 def xml @xml end |
Instance Method Details
#build ⇒ Object
10 11 12 13 14 |
# File 'lib/ruby_xml_nfe/aut_xml.rb', line 10 def build xml.autXML do xml.CNPJ cnpj end end |