Class: NFe::Volume
- Inherits:
-
EntidadeNFe
- Object
- EntidadeNFe
- NFe::Volume
- Defined in:
- lib/nfe/entidades/infNFe/transp/volume.rb
Instance Attribute Summary collapse
-
#esp ⇒ Object
Returns the value of attribute esp.
-
#pesoB ⇒ Object
Returns the value of attribute pesoB.
-
#pesoL ⇒ Object
Returns the value of attribute pesoL.
-
#qVol ⇒ Object
Returns the value of attribute qVol.
Instance Method Summary collapse
Methods inherited from EntidadeNFe
nfe_attr, #nfe_attributes, nfe_attrs, #serialize, #to_nfe, #to_nfe_xml, #to_xml, xml_accessor, #xml_to_hash
Instance Attribute Details
#esp ⇒ Object
Returns the value of attribute esp.
6 7 8 |
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 6 def esp @esp end |
#pesoB ⇒ Object
Returns the value of attribute pesoB.
8 9 10 |
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 8 def pesoB @pesoB end |
#pesoL ⇒ Object
Returns the value of attribute pesoL.
7 8 9 |
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 7 def pesoL @pesoL end |
#qVol ⇒ Object
Returns the value of attribute qVol.
5 6 7 |
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 5 def qVol @qVol end |
Instance Method Details
#attributes ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 10 def attributes @attributes = { "qVol" => qVol, "esp" => esp, "pesoL" => pesoL, "pesoB" => pesoB } end |
#attributes=(params) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 19 def attributes=(params) @attributes = { "qVol" => params["qVol"], "esp" => params["esp"], "pesoL" => params["pesoL"], "pesoB" => params["pesoB"] } end |