Class: BrNfe::Product::Nfe::Transporte::Veiculo
- Inherits:
-
ActiveModelBase
- Object
- ActiveModelBase
- BrNfe::Product::Nfe::Transporte::Veiculo
- Defined in:
- lib/br_nfe/product/nfe/transporte/veiculo.rb
Instance Attribute Summary collapse
-
#placa ⇒ Object
Placa do veículo (NT2011/004) Conforme a documentação oficial: Informar em um dos seguintes formatos: XXX9999, XXX999, XX9999 ou XXXX999.
-
#rntc ⇒ Object
Registro Nacional de Transportador de Carga (ANTT).
-
#uf ⇒ Object
Sigla da UF.
Attributes inherited from ActiveModelBase
Method Summary
Methods inherited from ActiveModelBase
#assign_attributes, #default_values, #initialize
Constructor Details
This class inherits a constructor from BrNfe::ActiveModelBase
Instance Attribute Details
#placa ⇒ Object
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 |
#rntc ⇒ Object
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 |
#uf ⇒ Object
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 |