Class: BlinkApi::Client
- Inherits:
-
Saddle::Client
- Object
- Saddle::Client
- BlinkApi::Client
- Defined in:
- lib/blink_api/client.rb
Class Method Summary collapse
- .additional_middlewares ⇒ Object
- .api_key ⇒ Object
- .default_options ⇒ Object
- .host ⇒ Object
- .path_prefix ⇒ Object
- .use_ssl ⇒ Object
Class Method Details
.additional_middlewares ⇒ Object
24 25 26 |
# File 'lib/blink_api/client.rb', line 24 def self.additional_middlewares [:klass => FaradayMiddleware::Request::ApiKey, :args => []] end |
.api_key ⇒ Object
4 5 6 |
# File 'lib/blink_api/client.rb', line 4 def self.api_key BlinkApi.configuration.api_key end |
.default_options ⇒ Object
20 21 22 |
# File 'lib/blink_api/client.rb', line 20 def self. super.merge(:api_key => api_key) end |
.host ⇒ Object
8 9 10 |
# File 'lib/blink_api/client.rb', line 8 def self.host 'api.blinknetwork.com' end |
.path_prefix ⇒ Object
12 13 14 |
# File 'lib/blink_api/client.rb', line 12 def self.path_prefix 'map/v1' end |
.use_ssl ⇒ Object
16 17 18 |
# File 'lib/blink_api/client.rb', line 16 def self.use_ssl true end |