Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

FipExtractor

Gem Version Build Status Coverage Status Maintainability

Unofficial client gem for FIPE vehicle table.

Installation

Add this line in your Gemfile:

gem 'fipextractor', '~> 1.0'
$ bundle

Or

$ gem install fipextractor

Implemented Calls

ReferenceTable

response = FipExtractor::ReferenceTable.new.call
response.all # array of reference tables id

Brand

response = FipExtractor::Brand.new(vehicle_type: :car, reference_table_id: 66).call
response.all # array of vehicle brands

Model

response = FipExtractor::Model.new(vehicle_type: :car, reference_table_id: 66, brand_id: 44).call
response.all # array of model and years
response.models # array of model hashes
response.years # array of year designated

ModelYear

response = FipExtractor::ModelYear.new(vehicle_type: :car, reference_table_id: 66, brand_id: 44, model_id: 1878).call
response.all # array of models with aging

ModelThroughYear

response = FipExtractor::ModelThroughYear.new(vehicle_type: :car, reference_table_id: 66, brand_id: 44, year: 1999, fuel: 1).call
response.all # array of models ordered by year, and/or fuel filter

Vehicle

response = FipExtractor::Vehicle.new(vehicle_type: :car, reference_table_id: 237, brand_id: 59, model_id: 2365, year: 1999, fuel: 3).call
response.details # detailed fipe information of vehicle

Vehicle Types

  { car: 1, motorcycle: 2, truck: 3 }

Tests

rake spec

Console

bundle console

License

The gem is available as open source under the terms of the MIT License.

About

unofficial api client gem for FIPE vehicle table

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages