Class: VinData::Services::Base
- Inherits:
-
Object
- Object
- VinData::Services::Base
- Defined in:
- lib/vindata/services/base.rb
Instance Method Summary collapse
-
#base_url(query) ⇒ Object
Base URL of the API to query.
- #configuration ⇒ Object
- #details_by_vin(vin) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
-
#name ⇒ Object
Human readable name of this service.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/vindata/services/base.rb', line 4 def initialize @cache = nil end |
Instance Method Details
#base_url(query) ⇒ Object
Base URL of the API to query
14 15 16 |
# File 'lib/vindata/services/base.rb', line 14 def base_url(query) fail end |
#configuration ⇒ Object
22 23 24 |
# File 'lib/vindata/services/base.rb', line 22 def configuration VinData.config end |
#details_by_vin(vin) ⇒ Object
18 19 20 |
# File 'lib/vindata/services/base.rb', line 18 def details_by_vin vin fail end |
#name ⇒ Object
Human readable name of this service
9 10 11 |
# File 'lib/vindata/services/base.rb', line 9 def name fail end |