No commit activity in last 3 years
No release in over 3 years
Get sports odds from Sportsbook.ag.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 5.0.0.1, ~> 5.0.0
 Project Readme

Get sports odds from Sportsbook.ag.

Installation

Add this line to your application's Gemfile:

gem 'sportsbook_ag-feed'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sportsbook_ag-feed

Usage

# Pull the latest feed
feed = SportsbookAg::Feed::NFL.new
feed.games         #=> [#<SportsbookAg::Feed::Game>, ...]

# Get the raw data:
schedule._data     #=> {:rss=>{:version=>"2.0", ...}}
schedule._xml      #=> "<?xml version=\"1.0\" ..."

# Game and lines details
game = feed.games.first
game.home                 #=> Denver Broncos
game.home_moneyline.odds  #=> -110
game.home_spread.spread   #=> -3.5
game.total                #=> 39

License

The gem is available as open source under the terms of the MIT License.