Module: ChromeData
- Extended by:
- ChromeData, Caching
- Included in:
- ChromeData
- Defined in:
- lib/chrome_data/model_year.rb,
lib/chrome_data.rb,
lib/chrome_data/model.rb,
lib/chrome_data/style.rb,
lib/chrome_data/vehicle.rb,
lib/chrome_data/version.rb,
lib/chrome_data/division.rb,
lib/chrome_data/base_request.rb,
lib/chrome_data/collection_request.rb
Overview
NOTE: Chrome Data’s API offers a getModelYears method that returns every year from 1981 through to next year.
We could hit the API for that data, but I think that's silly, so this class calculates the years
that Chrome Data would return.
Defined Under Namespace
Modules: Caching Classes: BaseRequest, CollectionRequest, Division, Model, ModelYear, Style, Vehicle
Constant Summary collapse
- VERSION =
"0.0.3"
Instance Method Summary collapse
-
#config ⇒ Object
Valid options: account_number account_secret country (default: ‘US’) language (default: ‘en’) cache_store.
- #configure {|config| ... } ⇒ Object
Methods included from Caching
Instance Method Details
#config ⇒ Object
Valid options:
account_number
account_secret
country (default: 'US')
language (default: 'en')
cache_store
29 30 31 |
# File 'lib/chrome_data.rb', line 29 def config @@config ||= SymbolTable.new country: 'US', language: 'en' end |
#configure {|config| ... } ⇒ Object
19 20 21 |
# File 'lib/chrome_data.rb', line 19 def configure yield config end |