Class: BlinkApi::Client

Inherits:
Saddle::Client
  • Object
show all
Defined in:
lib/blink_api/client.rb

Class Method Summary collapse

Class Method Details

.additional_middlewaresObject



24
25
26
# File 'lib/blink_api/client.rb', line 24

def self.additional_middlewares
  [:klass => FaradayMiddleware::Request::ApiKey, :args => []]
end

.api_keyObject



4
5
6
# File 'lib/blink_api/client.rb', line 4

def self.api_key
  BlinkApi.configuration.api_key
end

.default_optionsObject



20
21
22
# File 'lib/blink_api/client.rb', line 20

def self.default_options
  super.merge(:api_key => api_key)
end

.hostObject



8
9
10
# File 'lib/blink_api/client.rb', line 8

def self.host
  'api.blinknetwork.com'
end

.path_prefixObject



12
13
14
# File 'lib/blink_api/client.rb', line 12

def self.path_prefix
  'map/v1'
end

.use_sslObject



16
17
18
# File 'lib/blink_api/client.rb', line 16

def self.use_ssl
  true
end