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_keyObject



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



11
12
13
# File 'lib/cryptorank.rb', line 11

def app_info=(value)
  ::Cryptorank::Base.app_info = value
end

.pathObject



23
24
25
# File 'lib/cryptorank.rb', line 23

def path
  @mutex.synchronize { ::Cryptorank::Base.path_prefix }
end

.path=(value) ⇒ Object



19
20
21
# File 'lib/cryptorank.rb', line 19

def path=(value)
  @mutex.synchronize { ::Cryptorank::Base.path_prefix = value }
end

.pingObject



15
16
17
# File 'lib/cryptorank.rb', line 15

def ping
  { status: 200 }
end

.versionObject



35
36
37
# File 'lib/cryptorank.rb', line 35

def version
  VERSION
end