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