Module: Fantasydata
- Extended by:
- Configurable
- Defined in:
- lib/fantasydata.rb,
lib/fantasydata/base.rb,
lib/fantasydata/news.rb,
lib/fantasydata/error.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/utils.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/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/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/daily_fantasy_player.rb,
lib/fantasydata/daily_fantasy_points.rb,
lib/fantasydata/error/not_acceptable.rb,
lib/fantasydata/response/raise_error.rb,
lib/fantasydata/error/gateway_timeout.rb,
lib/fantasydata/error/too_many_requests.rb,
lib/fantasydata/error/configuration_error.rb,
lib/fantasydata/error/service_unavailable.rb,
lib/fantasydata/daily_fantasy_player_stats.rb,
lib/fantasydata/error/unprocessable_entity.rb,
lib/fantasydata/error/internal_server_error.rb
Defined Under Namespace
Modules: API, Configurable, Default, Response Classes: Base, ByeWeek, Client, DailyFantasyPlayer, DailyFantasyPlayerStats, DailyFantasyPoints, Error, FantasyPlayerAdp, GameStat, Injury, News, PlayerDetail, PlayerGameStat, PlayerSeasonStat, Schedule, ScoringDetail, Stadium, Standings, TeamDetail, TeamGameStat, TeamSeasonStat, Timeline
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Attribute Summary
Attributes included from Configurable
#api_key, #connection_options, #endpoint, #middleware
Class Method Summary collapse
-
.client ⇒ Echowrap::Client
Delegate to a Echowrap::Client.
Instance Method Summary collapse
- #respond_to?(method_name, include_private = false) ⇒ Boolean
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Methods included from Configurable
configure, credentials?, keys, reset!
Class Method Details
.client ⇒ Echowrap::Client
Delegate to a Echowrap::Client
34 35 36 37 |
# File 'lib/fantasydata.rb', line 34 def client @client = Fantasydata::Client.new() unless defined?(@client) && @client.hash == .hash @client end |
Instance Method Details
#respond_to?(method_name, include_private = false) ⇒ Boolean
40 |
# File 'lib/fantasydata.rb', line 40 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
39 |
# File 'lib/fantasydata.rb', line 39 def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end |