Class: Capwatch::CoinMarketCap

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

Class Method Summary collapse

Class Method Details

.fetchObject



120
121
122
# File 'lib/capwatch.rb', line 120

def self.fetch
  JSON.parse(Net::HTTP.get(URI('http://api.coinmarketcap.com/v1/ticker/')))
end