Class: FipExtractor::Model
- Defined in:
- lib/fipextractor/model.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#brand_id ⇒ Object
readonly
Returns the value of attribute brand_id.
-
#reference_table_id ⇒ Object
readonly
Returns the value of attribute reference_table_id.
-
#vehicle_type ⇒ Object
readonly
Returns the value of attribute vehicle_type.
Instance Method Summary collapse
-
#initialize(vehicle_type:, reference_table_id:, brand_id:) ⇒ Model
constructor
A new instance of Model.
- #params ⇒ Object
- #route ⇒ Object
Methods inherited from Resource
Methods inherited from Request
#base_url, #call, #request, #resource, #response_class
Constructor Details
#initialize(vehicle_type:, reference_table_id:, brand_id:) ⇒ Model
Returns a new instance of Model.
8 9 10 11 12 |
# File 'lib/fipextractor/model.rb', line 8 def initialize(vehicle_type:, reference_table_id:, brand_id:) @vehicle_type = vehicle_type @reference_table_id = reference_table_id @brand_id = brand_id end |
Instance Attribute Details
#brand_id ⇒ Object (readonly)
Returns the value of attribute brand_id.
6 7 8 |
# File 'lib/fipextractor/model.rb', line 6 def brand_id @brand_id end |
#reference_table_id ⇒ Object (readonly)
Returns the value of attribute reference_table_id.
6 7 8 |
# File 'lib/fipextractor/model.rb', line 6 def reference_table_id @reference_table_id end |
#vehicle_type ⇒ Object (readonly)
Returns the value of attribute vehicle_type.
6 7 8 |
# File 'lib/fipextractor/model.rb', line 6 def vehicle_type @vehicle_type end |
Instance Method Details
#params ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/fipextractor/model.rb', line 18 def params { codigoTipoVeiculo: vehicle_type_id, codigoTabelaReferencia: reference_table_id, codigoMarca: brand_id } end |
#route ⇒ Object
14 15 16 |
# File 'lib/fipextractor/model.rb', line 14 def route 'ConsultarModelos' end |