Class: RubyXmlNfe::Transp
- Inherits:
-
Object
- Object
- RubyXmlNfe::Transp
- Defined in:
- lib/ruby_xml_nfe/transp.rb
Instance Attribute Summary collapse
-
#modFrete ⇒ Object
readonly
Returns the value of attribute modFrete.
-
#vol_params ⇒ Object
readonly
Returns the value of attribute vol_params.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Transp
constructor
A new instance of Transp.
Constructor Details
#initialize(xml, params) ⇒ Transp
Returns a new instance of Transp.
7 8 9 10 11 |
# File 'lib/ruby_xml_nfe/transp.rb', line 7 def initialize(xml, params) @xml = xml @modFrete = params[:modFrete] @vol_params = params[:vol] end |
Instance Attribute Details
#modFrete ⇒ Object (readonly)
Returns the value of attribute modFrete.
5 6 7 |
# File 'lib/ruby_xml_nfe/transp.rb', line 5 def modFrete @modFrete end |
#vol_params ⇒ Object (readonly)
Returns the value of attribute vol_params.
5 6 7 |
# File 'lib/ruby_xml_nfe/transp.rb', line 5 def vol_params @vol_params end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
5 6 7 |
# File 'lib/ruby_xml_nfe/transp.rb', line 5 def xml @xml end |
Instance Method Details
#build ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/ruby_xml_nfe/transp.rb', line 13 def build xml.transp do xml.modFrete modFrete ipi_int = RubyXmlNfe::Vol.new(xml, vol_params) ipi_int.build end end |