Class: RubyXmlNfe::Ii
- Inherits:
-
Object
- Object
- RubyXmlNfe::Ii
- Defined in:
- lib/ruby_xml_nfe/ii.rb
Instance Attribute Summary collapse
-
#vBC ⇒ Object
readonly
Returns the value of attribute vBC.
-
#vDespAdu ⇒ Object
readonly
Returns the value of attribute vDespAdu.
-
#vII ⇒ Object
readonly
Returns the value of attribute vII.
-
#vIOF ⇒ Object
readonly
Returns the value of attribute vIOF.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Ii
constructor
A new instance of Ii.
Constructor Details
#initialize(xml, params) ⇒ Ii
Returns a new instance of Ii.
5 6 7 8 9 10 11 |
# File 'lib/ruby_xml_nfe/ii.rb', line 5 def initialize(xml, params) @xml = xml @vBC = params[:vBC] @vDespAdu = params[:vDespAdu] @vII = params[:vII] @vIOF = params[:vIOF] end |
Instance Attribute Details
#vBC ⇒ Object (readonly)
Returns the value of attribute vBC.
3 4 5 |
# File 'lib/ruby_xml_nfe/ii.rb', line 3 def vBC @vBC end |
#vDespAdu ⇒ Object (readonly)
Returns the value of attribute vDespAdu.
3 4 5 |
# File 'lib/ruby_xml_nfe/ii.rb', line 3 def vDespAdu @vDespAdu end |
#vII ⇒ Object (readonly)
Returns the value of attribute vII.
3 4 5 |
# File 'lib/ruby_xml_nfe/ii.rb', line 3 def vII @vII end |
#vIOF ⇒ Object (readonly)
Returns the value of attribute vIOF.
3 4 5 |
# File 'lib/ruby_xml_nfe/ii.rb', line 3 def vIOF @vIOF end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/ruby_xml_nfe/ii.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/ii.rb', line 13 def build xml.II do xml.vBC vBC xml.vDespAdu vDespAdu xml.vII vII xml.vIOF vIOF end end |