Class: BrNfe::Product::Nfe::Transporte::Veiculo

Inherits:
ActiveModelBase show all
Defined in:
lib/br_nfe/product/nfe/transporte/veiculo.rb

Instance Attribute Summary collapse

Attributes inherited from ActiveModelBase

#reference

Method Summary

Methods inherited from ActiveModelBase

#assign_attributes, #default_values, #initialize

Constructor Details

This class inherits a constructor from BrNfe::ActiveModelBase

Instance Attribute Details

#placaObject

Placa do veículo (NT2011/004) Conforme a documentação oficial:

Informar em um dos seguintes formatos: XXX9999, XXX999, XX9999 ou XXXX999.
Informar a placa em informações complementares quando a placa do veículo 
tiver lei de formação diversa. (NT 2011/005)

Porém a gem permite informar a placa com o - (hífen), Exemplo:

XXX-0000, XXX9999, XXX999, XX9999 ou XXXX999.

Esse attr só irá considerar as letras e números, onde as letras sempre vai converter para maiúsculo

Type: String Required: Yes tag: placa



20
21
22
# File 'lib/br_nfe/product/nfe/transporte/veiculo.rb', line 20

def placa
  @placa
end

#rntcObject

Registro Nacional de Transportador de Carga (ANTT)

Type: String Required: No Length: _max: 20_ tag: RNTC



41
42
43
# File 'lib/br_nfe/product/nfe/transporte/veiculo.rb', line 41

def rntc
  @rntc
end

#ufObject

Sigla da UF

Type: String Required: Yes Length: 2 tag: UF



32
33
34
# File 'lib/br_nfe/product/nfe/transporte/veiculo.rb', line 32

def uf
  @uf
end