Class: NFe::Veiculo

Inherits:
EntidadeNFe show all
Defined in:
lib/nfe/entidades/infNFe/transp/veiculo.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

#placaObject

Returns the value of attribute placa.



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

def placa
  @placa
end

#UFObject

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

#attributesObject

“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