Class: WebmaniabrNfeRuby::Models::Transport
- Inherits:
-
Object
- Object
- WebmaniabrNfeRuby::Models::Transport
- Defined in:
- lib/models/transport.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#cep ⇒ Object
Returns the value of attribute cep.
-
#city ⇒ Object
Returns the value of attribute city.
-
#cnpj ⇒ Object
Returns the value of attribute cnpj.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#ie ⇒ Object
Returns the value of attribute ie.
-
#uf ⇒ Object
Returns the value of attribute uf.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Transport
constructor
A new instance of Transport.
- #to_hash ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Transport
Returns a new instance of Transport.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/models/transport.rb', line 6 def initialize( = {}) @cnpj = [:cnpj] @company_name = [:company_name] @ie = [:ie] @cpf = [:cpf] @name = [:name] @address = [:address] @uf = [:uf] @city = [:city] @cep = [:cep] @board = [:board] @uf_vehicle = [:uf_vehicle] @rntc = [:rntc] @volume = [:volume] @kind = [:kind] @mark = [:mark] @numeration = [:numeration] @seals = [:seals] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/models/transport.rb', line 4 def address @address end |
#cep ⇒ Object
Returns the value of attribute cep.
4 5 6 |
# File 'lib/models/transport.rb', line 4 def cep @cep end |
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/models/transport.rb', line 4 def city @city end |
#cnpj ⇒ Object
Returns the value of attribute cnpj.
4 5 6 |
# File 'lib/models/transport.rb', line 4 def cnpj @cnpj end |
#company_name ⇒ Object
Returns the value of attribute company_name.
4 5 6 |
# File 'lib/models/transport.rb', line 4 def company_name @company_name end |
#ie ⇒ Object
Returns the value of attribute ie.
4 5 6 |
# File 'lib/models/transport.rb', line 4 def ie @ie end |
#uf ⇒ Object
Returns the value of attribute uf.
4 5 6 |
# File 'lib/models/transport.rb', line 4 def uf @uf end |
Instance Method Details
#to_hash ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/models/transport.rb', line 26 def to_hash { cnpj: @cnpj, razao_social: @company_name, ie: @ie, cpf: @cpf, nome_completo: @name, endereco: @address, uf: @uf, cidade: @city, cep: @cep, placa: @board, uf_veiculo: @uf_vehicle, rntc: @rntc, volume: @volume, especie: @kind, mark: @mark, numeracao: @numeration, lacres: @seals } end |