Class: MySportsFeeds::Client
- Inherits:
-
Object
- Object
- MySportsFeeds::Client
- Defined in:
- lib/mysportsfeeds/client.rb
Instance Method Summary collapse
- #api ⇒ Object
- #get_active_players ⇒ Object
- #get_conference_team_standings(team_stats) ⇒ Object
- #get_cumulative_player_stats ⇒ Object
- #get_daily_dfs(date) ⇒ Object
- #get_daily_game_schedule(date) ⇒ Object
- #get_daily_player_stats(date) ⇒ Object
- #get_division_team_standings(team_stats) ⇒ Object
- #get_full_game_schedule ⇒ Object
- #get_game_box_score(gameid) ⇒ Object
- #get_game_play_by_play(gameid) ⇒ Object
- #get_latest_updates ⇒ Object
- #get_overall_team_standings ⇒ Object
- #get_player_injuries ⇒ Object
- #get_playoff_team_standings(team_stats) ⇒ Object
- #get_roster_players(date) ⇒ Object
- #get_scoreboard(date) ⇒ Object
-
#initialize(username, password, options = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(username, password, options = {}) ⇒ Client
Returns a new instance of Client.
3 4 5 |
# File 'lib/mysportsfeeds/client.rb', line 3 def initialize(username, password, = {}) @api = MySportsFeeds::Api.new(username, password, ) end |
Instance Method Details
#api ⇒ Object
71 72 73 |
# File 'lib/mysportsfeeds/client.rb', line 71 def api @api end |
#get_active_players ⇒ Object
39 40 41 |
# File 'lib/mysportsfeeds/client.rb', line 39 def get_active_players @api.get('active_players') end |
#get_conference_team_standings(team_stats) ⇒ Object
47 48 49 |
# File 'lib/mysportsfeeds/client.rb', line 47 def get_conference_team_standings(team_stats) @api.get('conference_team_standings') end |
#get_cumulative_player_stats ⇒ Object
7 8 9 |
# File 'lib/mysportsfeeds/client.rb', line 7 def get_cumulative_player_stats @api.get('cumulative_player_stats') end |
#get_daily_dfs(date) ⇒ Object
67 68 69 |
# File 'lib/mysportsfeeds/client.rb', line 67 def get_daily_dfs(date) @api.get('daily_dfs', { fordate: date }) end |
#get_daily_game_schedule(date) ⇒ Object
15 16 17 |
# 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) ⇒ Object
19 20 21 |
# 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) ⇒ Object
51 52 53 |
# File 'lib/mysportsfeeds/client.rb', line 51 def get_division_team_standings(team_stats) @api.get('division_team_standings') end |
#get_full_game_schedule ⇒ Object
11 12 13 |
# File 'lib/mysportsfeeds/client.rb', line 11 def get_full_game_schedule @api.get('full_game_schedule') end |
#get_game_box_score(gameid) ⇒ Object
27 28 29 |
# 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) ⇒ Object
23 24 25 |
# File 'lib/mysportsfeeds/client.rb', line 23 def get_game_play_by_play(gameid) @api.get('game_playbyplay', { gameid: gameid }) end |
#get_latest_updates ⇒ Object
63 64 65 |
# File 'lib/mysportsfeeds/client.rb', line 63 def get_latest_updates @api.get('latest_updates') end |
#get_overall_team_standings ⇒ Object
43 44 45 |
# File 'lib/mysportsfeeds/client.rb', line 43 def get_overall_team_standings @api.get('overall_team_standings') end |
#get_player_injuries ⇒ Object
59 60 61 |
# File 'lib/mysportsfeeds/client.rb', line 59 def get_player_injuries @api.get('player_injuries') end |
#get_playoff_team_standings(team_stats) ⇒ Object
55 56 57 |
# File 'lib/mysportsfeeds/client.rb', line 55 def get_playoff_team_standings(team_stats) @api.get('playoff_team_standings') end |
#get_roster_players(date) ⇒ Object
35 36 37 |
# File 'lib/mysportsfeeds/client.rb', line 35 def get_roster_players(date) @api.get('roster_players', { fordate: date }) end |
#get_scoreboard(date) ⇒ Object
31 32 33 |
# File 'lib/mysportsfeeds/client.rb', line 31 def get_scoreboard(date) @api.get('scoreboard', { fordate: date }) end |