lib/capwatch/coinmarketcap.rb in capwatch-0.1.11 vs lib/capwatch/coinmarketcap.rb in capwatch-0.1.12
- old
+ new
@@ -1,10 +1,10 @@
require 'json'
require 'open-uri'
module Capwatch
class CoinMarketCap
- URL = 'http://api.coinmarketcap.com/v1/ticker/'.freeze
+ URL = 'https://api.coinmarketcap.com/v1/ticker/'.freeze
def self.fetch
response = open(URL).read
JSON.parse response
end
end