Class: RubyXmlNfe::Dup
- Inherits:
-
Object
- Object
- RubyXmlNfe::Dup
- Defined in:
- lib/ruby_xml_nfe/dup.rb
Instance Attribute Summary collapse
-
#dVenc ⇒ Object
readonly
Returns the value of attribute dVenc.
-
#nDup ⇒ Object
readonly
Returns the value of attribute nDup.
-
#vDup ⇒ Object
readonly
Returns the value of attribute vDup.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Dup
constructor
A new instance of Dup.
Constructor Details
#initialize(xml, params) ⇒ Dup
5 6 7 8 9 10 |
# File 'lib/ruby_xml_nfe/dup.rb', line 5 def initialize(xml, params) @xml = xml @nDup = params[:nDup] @dVenc = params[:dVenc] @vDup = params[:vDup] end |
Instance Attribute Details
#dVenc ⇒ Object (readonly)
Returns the value of attribute dVenc.
3 4 5 |
# File 'lib/ruby_xml_nfe/dup.rb', line 3 def dVenc @dVenc end |
#nDup ⇒ Object (readonly)
Returns the value of attribute nDup.
3 4 5 |
# File 'lib/ruby_xml_nfe/dup.rb', line 3 def nDup @nDup end |
#vDup ⇒ Object (readonly)
Returns the value of attribute vDup.
3 4 5 |
# File 'lib/ruby_xml_nfe/dup.rb', line 3 def vDup @vDup end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/ruby_xml_nfe/dup.rb', line 3 def xml @xml end |
Instance Method Details
#build ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/ruby_xml_nfe/dup.rb', line 12 def build xml.dup_ do xml.nDup nDup xml.dVenc dVenc xml.vDup vDup end end |