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_endpoint ⇒ Object
26 27 28 |
# File 'lib/bitsor/default.rb', line 26 def api_endpoint ENV['API_ENDPOINT'] || API_ENDPOINT end |
.api_key ⇒ Object
18 19 20 |
# File 'lib/bitsor/default.rb', line 18 def api_key ENV['API_KEY'] end |
.api_secret ⇒ Object
22 23 24 |
# File 'lib/bitsor/default.rb', line 22 def api_secret ENV['API_SECRET'] end |
.client_id ⇒ Object
14 15 16 |
# File 'lib/bitsor/default.rb', line 14 def client_id ENV['CLIENT_ID'] end |
.options ⇒ Object
10 11 12 |
# File 'lib/bitsor/default.rb', line 10 def Hash[Bitsor::Configurable.keys.map { |key| [key, send(key)] }] end |