Class: Capwatch::CoinMarketCap
- Inherits:
-
Object
- Object
- Capwatch::CoinMarketCap
- Defined in:
- lib/capwatch.rb
Class Method Summary collapse
Class Method Details
.fetch ⇒ Object
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 |