Module: Fantasydata

Extended by:
Configurable
Defined in:
lib/fantasydata.rb,
lib/fantasydata/base.rb,
lib/fantasydata/news.rb,
lib/fantasydata/error.rb,
lib/fantasydata/score.rb,
lib/fantasydata/client.rb,
lib/fantasydata/injury.rb,
lib/fantasydata/default.rb,
lib/fantasydata/stadium.rb,
lib/fantasydata/version.rb,
lib/fantasydata/api/game.rb,
lib/fantasydata/api/news.rb,
lib/fantasydata/api/team.rb,
lib/fantasydata/api/week.rb,
lib/fantasydata/bye_week.rb,
lib/fantasydata/schedule.rb,
lib/fantasydata/timeline.rb,
lib/fantasydata/api/score.rb,
lib/fantasydata/api/utils.rb,
lib/fantasydata/box_score.rb,
lib/fantasydata/game_stat.rb,
lib/fantasydata/standings.rb,
lib/fantasydata/api/injury.rb,
lib/fantasydata/api/season.rb,
lib/fantasydata/api/fantasy.rb,
lib/fantasydata/api/stadium.rb,
lib/fantasydata/team_detail.rb,
lib/fantasydata/api/schedule.rb,
lib/fantasydata/api/timeline.rb,
lib/fantasydata/configurable.rb,
lib/fantasydata/api/box_score.rb,
lib/fantasydata/api/bye_weeks.rb,
lib/fantasydata/api/standings.rb,
lib/fantasydata/player_detail.rb,
lib/fantasydata/boxscore/score.rb,
lib/fantasydata/scoring_detail.rb,
lib/fantasydata/team_game_stat.rb,
lib/fantasydata/api/player_stat.rb,
lib/fantasydata/error/forbidden.rb,
lib/fantasydata/error/not_found.rb,
lib/fantasydata/player_game_stat.rb,
lib/fantasydata/team_season_stat.rb,
lib/fantasydata/error/bad_gateway.rb,
lib/fantasydata/error/bad_request.rb,
lib/fantasydata/api/league_leaders.rb,
lib/fantasydata/api/player_details.rb,
lib/fantasydata/error/client_error.rb,
lib/fantasydata/error/server_error.rb,
lib/fantasydata/error/unauthorized.rb,
lib/fantasydata/fantasy_player_adp.rb,
lib/fantasydata/player_season_stat.rb,
lib/fantasydata/response/parse_json.rb,
lib/fantasydata/boxscore/return_stat.rb,
lib/fantasydata/daily_fantasy_player.rb,
lib/fantasydata/daily_fantasy_points.rb,
lib/fantasydata/error/not_acceptable.rb,
lib/fantasydata/response/raise_error.rb,
lib/fantasydata/boxscore/kicking_stat.rb,
lib/fantasydata/boxscore/passing_stat.rb,
lib/fantasydata/boxscore/punting_stat.rb,
lib/fantasydata/boxscore/rushing_stat.rb,
lib/fantasydata/boxscore/scoring_play.rb,
lib/fantasydata/error/gateway_timeout.rb,
lib/fantasydata/boxscore/receiving_stat.rb,
lib/fantasydata/error/too_many_requests.rb,
lib/fantasydata/error/configuration_error.rb,
lib/fantasydata/error/service_unavailable.rb,
lib/fantasydata/boxscore/team_defense_stat.rb,
lib/fantasydata/daily_fantasy_player_stats.rb,
lib/fantasydata/error/unprocessable_entity.rb,
lib/fantasydata/error/internal_server_error.rb,
lib/fantasydata/boxscore/player_defense_stat.rb

Defined Under Namespace

Modules: API, Boxscore, Configurable, Default, Response Classes: Base, BoxScore, ByeWeek, Client, DailyFantasyPlayer, DailyFantasyPlayerStats, DailyFantasyPoints, Error, FantasyPlayerAdp, GameStat, Injury, News, PlayerDetail, PlayerGameStat, PlayerSeasonStat, Schedule, Score, ScoringDetail, Stadium, Standings, TeamDetail, TeamGameStat, TeamSeasonStat, Timeline

Constant Summary collapse

VERSION =
"0.2.2"

Instance Attribute Summary

Attributes included from Configurable

#api_key, #connection_options, #endpoint, #middleware

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

configure, credentials?, keys, reset!

Class Method Details

.clientEchowrap::Client

Delegate to a Echowrap::Client

Returns:

  • (Echowrap::Client)


46
47
48
49
# File 'lib/fantasydata.rb', line 46

def client
  @client = Fantasydata::Client.new(options) unless defined?(@client) && @client.hash == options.hash
  @client
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


52
# File 'lib/fantasydata.rb', line 52

def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


51
# File 'lib/fantasydata.rb', line 51

def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end