Module: Bitsor::Default

Defined in:
lib/bitsor/default.rb

Constant Summary collapse

API_ENDPOINT =
'https://api.bitso.com'

Class Method Summary collapse

Class Method Details

.api_endpointObject



26
27
28
# File 'lib/bitsor/default.rb', line 26

def api_endpoint
  ENV['API_ENDPOINT'] || API_ENDPOINT
end

.api_keyObject



18
19
20
# File 'lib/bitsor/default.rb', line 18

def api_key
  ENV['API_KEY']
end

.api_secretObject



22
23
24
# File 'lib/bitsor/default.rb', line 22

def api_secret
  ENV['API_SECRET']
end

.client_idObject



14
15
16
# File 'lib/bitsor/default.rb', line 14

def client_id
  ENV['CLIENT_ID']
end

.optionsObject



10
11
12
# File 'lib/bitsor/default.rb', line 10

def options
  Hash[Bitsor::Configurable.keys.map { |key| [key, send(key)] }]
end