Class: NFe::Veiculo
- Inherits:
-
EntidadeNFe
- Object
- EntidadeNFe
- NFe::Veiculo
- Defined in:
- lib/nfe/entidades/infNFe/transp/veiculo.rb
Instance Attribute Summary collapse
-
#placa ⇒ Object
Returns the value of attribute placa.
-
#UF ⇒ Object
Returns the value of attribute UF.
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
#placa ⇒ Object
Returns the value of attribute placa.
6 7 8 |
# File 'lib/nfe/entidades/infNFe/transp/veiculo.rb', line 6 def placa @placa end |
#UF ⇒ Object
Returns the value of attribute UF.
7 8 9 |
# File 'lib/nfe/entidades/infNFe/transp/veiculo.rb', line 7 def UF @UF end |
Instance Method Details
#attributes ⇒ Object
“RNTC” => params
13 14 15 16 17 18 |
# File 'lib/nfe/entidades/infNFe/transp/veiculo.rb', line 13 def attributes @attributes = { "placa" => placa, "UF" => UF } end |
#attributes=(params) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/nfe/entidades/infNFe/transp/veiculo.rb', line 20 def attributes=(params) @attributes = { "placa" => params["placa"], "UF" => params["UF"] } end |