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