Sha256: 05c274d27488a5759b10ba8f7b5045a681b5355aca63726fdbb498fa72532ba6

Contents?: true

Size: 227 Bytes

Versions: 1

Compression:

Stored size: 227 Bytes

Contents

require 'json'
require 'open-uri'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capwatch-0.1.11 lib/capwatch/coinmarketcap.rb