Sha256: 9b79991a4616943457e74d8fcb35e12ba7e1f33bf0760dbac6277df8e1ccf648

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

require 'json'
require 'faraday'

module Mousecop
  class PlayerSource
    def base_url
      "http://collegebowl.avatarpro.biz/"
    end

    def fetch_data(path)
      JSON.parse(Faraday.get(base_url + path).body)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mousecop-0.0.3 lib/mousecop/player_source.rb