Class: NFe::Volume

Inherits:
EntidadeNFe show all
Defined in:
lib/nfe/entidades/infNFe/transp/volume.rb

Instance Attribute Summary collapse

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

#espObject

Returns the value of attribute esp.



6
7
8
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 6

def esp
  @esp
end

#pesoBObject

Returns the value of attribute pesoB.



8
9
10
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 8

def pesoB
  @pesoB
end

#pesoLObject

Returns the value of attribute pesoL.



7
8
9
# File 'lib/nfe/entidades/infNFe/transp/volume.rb', line 7

def pesoL
  @pesoL
end

#qVolObject

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

#attributesObject



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