Class: Capwatch::CoinMarketCap

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

Class Method Summary collapse

Class Method Details

.fetchObject



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

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