Class: Cryptorank::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptorank/base.rb

Direct Known Subclasses

Chart, Currency, History, Ticker

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

.app_infoObject

Returns the value of attribute app_info.



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

def app_info
  @app_info
end

.path_prefixObject

Returns the value of attribute path_prefix.



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

def path_prefix
  @path_prefix
end

Class Method Details

.split_words(name) ⇒ Object



13
14
15
# File 'lib/cryptorank/base.rb', line 13

def split_words(name)
  name.split(/\W+/).join('-')
end