Module: MLB

Defined in:
lib/mlb/team.rb,
lib/mlb/job.rb,
lib/mlb/sky.rb,
lib/mlb/jobs.rb,
lib/mlb/play.rb,
lib/mlb/award.rb,
lib/mlb/draft.rb,
lib/mlb/skies.rb,
lib/mlb/sport.rb,
lib/mlb/stats.rb,
lib/mlb/teams.rb,
lib/mlb/utils.rb,
lib/mlb/venue.rb,
lib/mlb/alumni.rb,
lib/mlb/awards.rb,
lib/mlb/client.rb,
lib/mlb/leader.rb,
lib/mlb/league.rb,
lib/mlb/metric.rb,
lib/mlb/player.rb,
lib/mlb/roster.rb,
lib/mlb/season.rb,
lib/mlb/sports.rb,
lib/mlb/status.rb,
lib/mlb/venues.rb,
lib/mlb/coaches.rb,
lib/mlb/leaders.rb,
lib/mlb/leagues.rb,
lib/mlb/metrics.rb,
lib/mlb/players.rb,
lib/mlb/seasons.rb,
lib/mlb/streaks.rb,
lib/mlb/version.rb,
lib/mlb/boxscore.rb,
lib/mlb/division.rb,
lib/mlb/high_low.rb,
lib/mlb/job_type.rb,
lib/mlb/language.rb,
lib/mlb/platform.rb,
lib/mlb/position.rb,
lib/mlb/schedule.rb,
lib/mlb/uniforms.rb,
lib/mlb/divisions.rb,
lib/mlb/game_data.rb,
lib/mlb/game_pace.rb,
lib/mlb/game_type.rb,
lib/mlb/job_types.rb,
lib/mlb/languages.rb,
lib/mlb/linescore.rb,
lib/mlb/live_feed.rb,
lib/mlb/personnel.rb,
lib/mlb/platforms.rb,
lib/mlb/positions.rb,
lib/mlb/standings.rb,
lib/mlb/stat_type.rb,
lib/mlb/team_stat.rb,
lib/mlb/affiliates.rb,
lib/mlb/attendance.rb,
lib/mlb/collection.rb,
lib/mlb/conference.rb,
lib/mlb/connection.rb,
lib/mlb/draft_pick.rb,
lib/mlb/event_type.rb,
lib/mlb/free_agent.rb,
lib/mlb/game_types.rb,
lib/mlb/handedness.rb,
lib/mlb/pitch_code.rb,
lib/mlb/pitch_type.rb,
lib/mlb/stat_group.rb,
lib/mlb/stat_types.rb,
lib/mlb/team_stats.rb,
lib/mlb/tied_games.rb,
lib/mlb/conferences.rb,
lib/mlb/errors/gone.rb,
lib/mlb/event_types.rb,
lib/mlb/free_agents.rb,
lib/mlb/game_status.rb,
lib/mlb/pitch_codes.rb,
lib/mlb/pitch_types.rb,
lib/mlb/player_stat.rb,
lib/mlb/roster_type.rb,
lib/mlb/stat_groups.rb,
lib/mlb/stat_values.rb,
lib/mlb/team_leader.rb,
lib/mlb/team_record.rb,
lib/mlb/transaction.rb,
lib/mlb/errors/error.rb,
lib/mlb/game_changes.rb,
lib/mlb/game_content.rb,
lib/mlb/inning_score.rb,
lib/mlb/play_by_play.rb,
lib/mlb/roster_entry.rb,
lib/mlb/roster_types.rb,
lib/mlb/team_history.rb,
lib/mlb/team_leaders.rb,
lib/mlb/transactions.rb,
lib/mlb/baseball_stat.rb,
lib/mlb/error_handler.rb,
lib/mlb/game_statuses.rb,
lib/mlb/logical_event.rb,
lib/mlb/review_reason.rb,
lib/mlb/schedule_date.rb,
lib/mlb/sport_players.rb,
lib/mlb/baseball_stats.rb,
lib/mlb/hit_trajectory.rb,
lib/mlb/home_run_derby.rb,
lib/mlb/logical_events.rb,
lib/mlb/people_changes.rb,
lib/mlb/review_reasons.rb,
lib/mlb/scheduled_game.rb,
lib/mlb/situation_code.rb,
lib/mlb/standings_type.rb,
lib/mlb/wind_direction.rb,
lib/mlb/context_metrics.rb,
lib/mlb/linescore_teams.rb,
lib/mlb/request_builder.rb,
lib/mlb/situation_codes.rb,
lib/mlb/standings_types.rb,
lib/mlb/win_probability.rb,
lib/mlb/wind_directions.rb,
lib/mlb/errors/forbidden.rb,
lib/mlb/errors/not_found.rb,
lib/mlb/errors/retryable.rb,
lib/mlb/hit_trajectories.rb,
lib/mlb/redirect_handler.rb,
lib/mlb/season_date_info.rb,
lib/mlb/standings_record.rb,
lib/mlb/attendance_record.rb,
lib/mlb/errors/http_error.rb,
lib/mlb/player_game_stats.rb,
lib/mlb/postseason_series.rb,
lib/mlb/single_team_stats.rb,
lib/mlb/errors/bad_gateway.rb,
lib/mlb/errors/bad_request.rb,
lib/mlb/league_leader_type.rb,
lib/mlb/boxscore_team_stats.rb,
lib/mlb/errors/client_error.rb,
lib/mlb/errors/server_error.rb,
lib/mlb/errors/unauthorized.rb,
lib/mlb/id_description_type.rb,
lib/mlb/league_leader_types.rb,
lib/mlb/postseason_schedule.rb,
lib/mlb/schedule_event_type.rb,
lib/mlb/errors/network_error.rb,
lib/mlb/schedule_event_types.rb,
lib/mlb/code_description_type.rb,
lib/mlb/errors/not_acceptable.rb,
lib/mlb/errors/gateway_timeout.rb,
lib/mlb/comparable_by_attribute.rb,
lib/mlb/errors/payload_too_large.rb,
lib/mlb/errors/too_many_requests.rb,
lib/mlb/errors/too_many_redirects.rb,
lib/mlb/errors/service_unavailable.rb,
lib/mlb/errors/connection_exception.rb,
lib/mlb/errors/unprocessable_entity.rb,
lib/mlb/errors/internal_server_error.rb

Overview

Ruby interface to the MLB Stats API

Defined Under Namespace

Modules: ComparableByAttribute, Retryable, Utils Classes: Affiliates, Alumni, Attendance, AttendanceRecord, Award, Awards, BadGateway, BadRequest, BaseballStat, BaseballStats, Boxscore, BoxscoreBattingStats, BoxscorePitchingStats, BoxscoreTeam, BoxscoreTeamStats, BoxscoreTeams, ChangedGame, ChangedGameDate, Client, ClientError, Coaches, CodeDescriptionType, Collection, Conference, Conferences, Connection, ConnectionException, ContextMetrics, DerbyBatter, DerbyHomeRun, DerbyInfo, DerbyMatchup, DerbyRound, Division, Divisions, Draft, DraftPick, DraftRound, DraftSchool, DraftYear, Error, ErrorHandler, EventType, EventTypes, Forbidden, FreeAgent, FreeAgents, GameChanges, GameContent, GameContentMedia, GameData, GameDateTime, GamePace, GamePaceStats, GameStatus, GameStatuses, GameTeams, GameType, GameTypes, GameUniforms, GatewayTimeout, Gone, HTTPError, Handedness, HighLow, HighLowGroup, HighLowResult, Highlight, HighlightsSection, HitTrajectories, HitTrajectory, HomeRunDerby, IdDescriptionType, InningHalfScore, InningScore, InternalServerError, Job, JobType, JobTypes, Jobs, Language, Languages, Leader, LeaderCategory, Leaders, League, LeagueLeaderType, LeagueLeaderTypes, LeagueRecord, Leagues, Linescore, LinescoreTeam, LinescoreTeams, LiveData, LiveFeed, LivePlays, LogicalEvent, LogicalEvents, MediaCut, MediaImage, MediaPlayback, Metric, Metrics, NetworkError, NotAcceptable, NotFound, PayloadTooLarge, PeopleChanges, Personnel, PitchCode, PitchCodes, PitchType, PitchTypes, Platform, Platforms, Play, PlayAbout, PlayByPlay, PlayCount, PlayMatchup, PlayResult, Player, PlayerGameBattingStats, PlayerGamePitchingStats, PlayerGameStatGroup, PlayerGameStatSplit, PlayerGameStats, PlayerStat, PlayerStatGroup, PlayerStreak, Players, Position, Positions, PostseasonSchedule, PostseasonSeries, PostseasonSeriesEntry, RedirectHandler, RequestBuilder, ReviewReason, ReviewReasons, Roster, RosterEntry, RosterType, RosterTypes, SacFlyProbability, Schedule, ScheduleDate, ScheduleEventType, ScheduleEventTypes, ScheduledGame, ScheduledGameTeam, ScheduledGameTeams, Season, SeasonDateInfo, Seasons, SeriesInfo, ServerError, ServiceUnavailable, SingleTeamStats, SituationCode, SituationCodes, Skies, Sky, Sport, SportPlayers, Sports, Standings, StandingsRecord, StandingsType, StandingsTypes, StatGroup, StatGroups, StatType, StatTypes, StatValues, Stats, Status, Streak, StreakCategory, Streaks, Team, TeamHistory, TeamLeader, TeamLeaderCategory, TeamLeaders, TeamRecord, TeamStat, TeamStatGroup, TeamStats, TeamUniforms, Teams, TiedGames, TooManyRedirects, TooManyRequests, Transaction, Transactions, Unauthorized, UniformAsset, UniformColor, UniformInfo, UnprocessableEntity, Venue, Venues, WinProbability, WinProbabilityEntry, WindDirection, WindDirections

Constant Summary collapse

CLIENT =

Default client instance

Client.new
VERSION =

Current version of the MLB gem

Gem::Version.create("0.11.0")
PlayerStatValues =
Deprecated.

Use StatValues instead

StatValues
TeamStatValues =
Deprecated.

Use StatValues instead

StatValues