Sha256: 3582578a427acbedc5060be876932d65cc9d4af1692b477c1b4ed72784d2b16e

Contents?: true

Size: 228 Bytes

Versions: 2

Compression:

Stored size: 228 Bytes

Contents

require 'json'
require 'open-uri'

module Capwatch
  class CoinMarketCap
    URL = 'https://api.coinmarketcap.com/v1/ticker/'.freeze
    def self.fetch
      response = open(URL).read
      JSON.parse response
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capwatch-0.1.13 lib/capwatch/coinmarketcap.rb
capwatch-0.1.12 lib/capwatch/coinmarketcap.rb