Module: Cryptorank
- Defined in:
- lib/cryptorank.rb,
lib/cryptorank/base.rb,
lib/cryptorank/version.rb,
lib/cryptorank/autoloader.rb,
lib/cryptorank/resources/chart.rb,
lib/cryptorank/resources/ticker.rb,
lib/cryptorank/resources/history.rb,
lib/cryptorank/resources/currency.rb
Defined Under Namespace
Classes: Autoloader, Base, Chart, Currency, History, Ticker
Constant Summary
collapse
- NAME =
'CryptoRank Ruby'
- VERSION =
'0.0.1'
Class Method Summary
collapse
Class Method Details
.api_key ⇒ Object
31
32
33
|
# File 'lib/cryptorank.rb', line 31
def api_key
@mutex.synchronize { ::Cryptorank::Base.api_key }
end
|
.api_key=(value) ⇒ Object
27
28
29
|
# File 'lib/cryptorank.rb', line 27
def api_key=(value)
@mutex.synchronize { ::Cryptorank::Base.api_key = value }
end
|
.app_info=(value) ⇒ Object
.path=(value) ⇒ Object
19
20
21
|
# File 'lib/cryptorank.rb', line 19
def path=(value)
@mutex.synchronize { ::Cryptorank::Base.path_prefix = value }
end
|
.ping ⇒ Object
15
16
17
|
# File 'lib/cryptorank.rb', line 15
def ping
{ status: 200 }
end
|
.version ⇒ Object
35
36
37
|
# File 'lib/cryptorank.rb', line 35
def version
VERSION
end
|