class MySportsFeeds::Client
Public Class Methods
new(username, password, options = {})
click to toggle source
# File lib/mysportsfeeds/client.rb, line 3 def initialize(username, password, options = {}) @api = MySportsFeeds::Api.new(username, password, options) end
Public Instance Methods
api()
click to toggle source
# File lib/mysportsfeeds/client.rb, line 71 def api @api end
get_active_players()
click to toggle source
# File lib/mysportsfeeds/client.rb, line 39 def get_active_players @api.get('active_players') end
get_conference_team_standings(team_stats)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 47 def get_conference_team_standings(team_stats) @api.get('conference_team_standings') end
get_cumulative_player_stats()
click to toggle source
# File lib/mysportsfeeds/client.rb, line 7 def get_cumulative_player_stats @api.get('cumulative_player_stats') end
get_daily_dfs(date)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 67 def get_daily_dfs(date) @api.get('daily_dfs', { fordate: date }) end
get_daily_game_schedule(date)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 15 def get_daily_game_schedule(date) @api.get('daily_game_schedule', { fordate: date }) end
get_daily_player_stats(date)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 19 def get_daily_player_stats(date) @api.get('daily_player_stats', { fordate: date }) end
get_division_team_standings(team_stats)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 51 def get_division_team_standings(team_stats) @api.get('division_team_standings') end
get_full_game_schedule()
click to toggle source
# File lib/mysportsfeeds/client.rb, line 11 def get_full_game_schedule @api.get('full_game_schedule') end
get_game_box_score(gameid)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 27 def get_game_box_score(gameid) @api.get('game_boxscore', { gameid: gameid }) end
get_game_play_by_play(gameid)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 23 def get_game_play_by_play(gameid) @api.get('game_playbyplay', { gameid: gameid }) end
get_latest_updates()
click to toggle source
# File lib/mysportsfeeds/client.rb, line 63 def get_latest_updates @api.get('latest_updates') end
get_overall_team_standings()
click to toggle source
# File lib/mysportsfeeds/client.rb, line 43 def get_overall_team_standings @api.get('overall_team_standings') end
get_player_injuries()
click to toggle source
# File lib/mysportsfeeds/client.rb, line 59 def get_player_injuries @api.get('player_injuries') end
get_playoff_team_standings(team_stats)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 55 def get_playoff_team_standings(team_stats) @api.get('playoff_team_standings') end
get_roster_players(date)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 35 def get_roster_players(date) @api.get('roster_players', { fordate: date }) end
get_scoreboard(date)
click to toggle source
# File lib/mysportsfeeds/client.rb, line 31 def get_scoreboard(date) @api.get('scoreboard', { fordate: date }) end