Module: Sportradar

Defined in:
lib/sportradar/api/images.rb,
lib/sportradar/api.rb,
lib/sportradar/api/mma.rb,
lib/sportradar/api/data.rb,
lib/sportradar/api/odds.rb,
lib/sportradar/api/poll.rb,
lib/sportradar/api/error.rb,
lib/sportradar/api/config.rb,
lib/sportradar/api/soccer.rb,
lib/sportradar/api/content.rb,
lib/sportradar/api/mma/api.rb,
lib/sportradar/api/request.rb,
lib/sportradar/api/version.rb,
lib/sportradar/api/odds/api.rb,
lib/sportradar/api/broadcast.rb,
lib/sportradar/api/mma/event.rb,
lib/sportradar/api/mma/fight.rb,
lib/sportradar/api/mma/judge.rb,
lib/sportradar/api/mma/score.rb,
lib/sportradar/api/mma/venue.rb,
lib/sportradar/api/odds/base.rb,
lib/sportradar/api/odds/book.rb,
lib/sportradar/api/images/ref.rb,
lib/sportradar/api/images/tag.rb,
lib/sportradar/api/mma/league.rb,
lib/sportradar/api/mma/result.rb,
lib/sportradar/api/mma/roster.rb,
lib/sportradar/api/mma/season.rb,
lib/sportradar/api/odds/sport.rb,
lib/sportradar/api/soccer/api.rb,
lib/sportradar/api/images/link.rb,
lib/sportradar/api/live_images.rb,
lib/sportradar/api/mma/fighter.rb,
lib/sportradar/api/mma/referee.rb,
lib/sportradar/api/odds/market.rb,
lib/sportradar/api/odds/player.rb,
lib/sportradar/api/soccer/fact.rb,
lib/sportradar/api/soccer/team.rb,
lib/sportradar/api/baseball/mlb.rb,
lib/sportradar/api/football/nfl.rb,
lib/sportradar/api/images/asset.rb,
lib/sportradar/api/mma/schedule.rb,
lib/sportradar/api/odds/outcome.rb,
lib/sportradar/api/soccer/event.rb,
lib/sportradar/api/soccer/group.rb,
lib/sportradar/api/soccer/match.rb,
lib/sportradar/api/soccer/venue.rb,
lib/sportradar/api/baseball/game.rb,
lib/sportradar/api/baseball/team.rb,
lib/sportradar/api/football/game.rb,
lib/sportradar/api/football/play.rb,
lib/sportradar/api/football/team.rb,
lib/sportradar/api/football/week.rb,
lib/sportradar/api/soccer/lineup.rb,
lib/sportradar/api/soccer/player.rb,
lib/sportradar/api/soccer/season.rb,
lib/sportradar/api/baseball/error.rb,
lib/sportradar/api/baseball/event.rb,
lib/sportradar/api/baseball/pitch.rb,
lib/sportradar/api/baseball/venue.rb,
lib/sportradar/api/basketball/nba.rb,
lib/sportradar/api/football/drive.rb,
lib/sportradar/api/football/event.rb,
lib/sportradar/api/football/venue.rb,
lib/sportradar/api/soccer/scoring.rb,
lib/sportradar/api/baseball/inning.rb,
lib/sportradar/api/baseball/lineup.rb,
lib/sportradar/api/baseball/player.rb,
lib/sportradar/api/baseball/record.rb,
lib/sportradar/api/baseball/runner.rb,
lib/sportradar/api/basketball/game.rb,
lib/sportradar/api/basketball/play.rb,
lib/sportradar/api/basketball/team.rb,
lib/sportradar/api/content/article.rb,
lib/sportradar/api/football/ncaafb.rb,
lib/sportradar/api/football/player.rb,
lib/sportradar/api/football/record.rb,
lib/sportradar/api/mma/competition.rb,
lib/sportradar/api/soccer/standing.rb,
lib/sportradar/api/baseball/fielder.rb,
lib/sportradar/api/baseball/mlb/api.rb,
lib/sportradar/api/baseball/outcome.rb,
lib/sportradar/api/baseball/scoring.rb,
lib/sportradar/api/basketball/venue.rb,
lib/sportradar/api/football/nfl/api.rb,
lib/sportradar/api/football/quarter.rb,
lib/sportradar/api/football/scoring.rb,
lib/sportradar/api/odds/book_market.rb,
lib/sportradar/api/odds/competition.rb,
lib/sportradar/api/odds/player_odds.rb,
lib/sportradar/api/odds/player_prop.rb,
lib/sportradar/api/odds/sport_event.rb,
lib/sportradar/api/basketball/injury.rb,
lib/sportradar/api/basketball/ncaamb.rb,
lib/sportradar/api/basketball/record.rb,
lib/sportradar/api/basketball/season.rb,
lib/sportradar/api/content/reference.rb,
lib/sportradar/api/football/nfl/game.rb,
lib/sportradar/api/football/nfl/play.rb,
lib/sportradar/api/football/nfl/team.rb,
lib/sportradar/api/football/nfl/week.rb,
lib/sportradar/api/images/asset_list.rb,
lib/sportradar/api/odds/regular_odds.rb,
lib/sportradar/api/soccer/team_group.rb,
lib/sportradar/api/soccer/tournament.rb,
lib/sportradar/api/basketball/nba/api.rb,
lib/sportradar/api/basketball/scoring.rb,
lib/sportradar/api/football/nfl/drive.rb,
lib/sportradar/api/football/nfl/event.rb,
lib/sportradar/api/football/situation.rb,
lib/sportradar/api/football/stat_pack.rb,
lib/sportradar/api/odds/prematch_odds.rb,
lib/sportradar/api/odds/probabilities.rb,
lib/sportradar/api/soccer/competition.rb,
lib/sportradar/api/baseball/mlb/league.rb,
lib/sportradar/api/basketball/nba/game.rb,
lib/sportradar/api/basketball/nba/team.rb,
lib/sportradar/api/football/game_stats.rb,
lib/sportradar/api/football/ncaafb/api.rb,
lib/sportradar/api/football/nfl/player.rb,
lib/sportradar/api/football/stats_shim.rb,
lib/sportradar/api/baseball/half_inning.rb,
lib/sportradar/api/basketball/broadcast.rb,
lib/sportradar/api/content/article_list.rb,
lib/sportradar/api/football/ncaafb/game.rb,
lib/sportradar/api/football/ncaafb/play.rb,
lib/sportradar/api/football/ncaafb/team.rb,
lib/sportradar/api/football/ncaafb/week.rb,
lib/sportradar/api/football/nfl/quarter.rb,
lib/sportradar/api/baseball/mlb/division.rb,
lib/sportradar/api/basketball/nba/player.rb,
lib/sportradar/api/basketball/nba/season.rb,
lib/sportradar/api/basketball/nba/series.rb,
lib/sportradar/api/basketball/ncaamb/api.rb,
lib/sportradar/api/basketball/plays/base.rb,
lib/sportradar/api/basketball/plays/foul.rb,
lib/sportradar/api/basketball/plays/lane.rb,
lib/sportradar/api/football/ncaafb/drive.rb,
lib/sportradar/api/football/nfl/division.rb,
lib/sportradar/api/baseball/events/at_bat.rb,
lib/sportradar/api/baseball/events/lineup.rb,
lib/sportradar/api/basketball/nba/quarter.rb,
lib/sportradar/api/basketball/ncaamb/game.rb,
lib/sportradar/api/basketball/ncaamb/half.rb,
lib/sportradar/api/basketball/ncaamb/team.rb,
lib/sportradar/api/basketball/plays/block.rb,
lib/sportradar/api/basketball/plays/delay.rb,
lib/sportradar/api/basketball/plays/steal.rb,
lib/sportradar/api/football/ncaafb/player.rb,
lib/sportradar/api/basketball/nba/division.rb,
lib/sportradar/api/basketball/nba/schedule.rb,
lib/sportradar/api/basketball/ncaamb/round.rb,
lib/sportradar/api/basketball/plays/assist.rb,
lib/sportradar/api/basketball/plays/review.rb,
lib/sportradar/api/football/ncaafb/quarter.rb,
lib/sportradar/api/football/nfl/conference.rb,
lib/sportradar/api/basketball/ncaamb/player.rb,
lib/sportradar/api/basketball/ncaamb/season.rb,
lib/sportradar/api/basketball/plays/rebound.rb,
lib/sportradar/api/basketball/plays/timeout.rb,
lib/sportradar/api/football/ncaafb/division.rb,
lib/sportradar/api/football/nfl/depth_chart.rb,
lib/sportradar/api/football/play_statistics.rb,
lib/sportradar/api/football/stat_pack/punts.rb,
lib/sportradar/api/basketball/nba/conference.rb,
lib/sportradar/api/basketball/ncaamb/bracket.rb,
lib/sportradar/api/basketball/plays/deadball.rb,
lib/sportradar/api/basketball/plays/ejection.rb,
lib/sportradar/api/basketball/plays/jumpball.rb,
lib/sportradar/api/basketball/plays/kickball.rb,
lib/sportradar/api/basketball/plays/open_tip.rb,
lib/sportradar/api/basketball/plays/stoppage.rb,
lib/sportradar/api/basketball/plays/turnover.rb,
lib/sportradar/api/baseball/events/warming_up.rb,
lib/sportradar/api/basketball/ncaamb/division.rb,
lib/sportradar/api/basketball/ncaamb/schedule.rb,
lib/sportradar/api/basketball/plays/shot_made.rb,
lib/sportradar/api/basketball/plays/shot_miss.rb,
lib/sportradar/api/football/ncaafb/conference.rb,
lib/sportradar/api/football/stat_pack/defense.rb,
lib/sportradar/api/football/stat_pack/fumbles.rb,
lib/sportradar/api/football/stat_pack/passing.rb,
lib/sportradar/api/football/stat_pack/rushing.rb,
lib/sportradar/api/basketball/ncaamb/hierarchy.rb,
lib/sportradar/api/basketball/plays/end_period.rb,
lib/sportradar/api/basketball/plays/possession.rb,
lib/sportradar/api/basketball/plays/tv_timeout.rb,
lib/sportradar/api/football/ncaafb/subdivision.rb,
lib/sportradar/api/football/stat_pack/kickoffs.rb,
lib/sportradar/api/basketball/ncaamb/conference.rb,
lib/sportradar/api/basketball/ncaamb/tournament.rb,
lib/sportradar/api/basketball/plays/double_lane.rb,
lib/sportradar/api/football/stat_pack/penalties.rb,
lib/sportradar/api/football/stat_pack/receiving.rb,
lib/sportradar/api/basketball/plays/flagrant_one.rb,
lib/sportradar/api/basketball/plays/flagrant_two.rb,
lib/sportradar/api/basketball/plays/open_inbound.rb,
lib/sportradar/api/basketball/plays/team_timeout.rb,
lib/sportradar/api/football/nfl/team_depth_chart.rb,
lib/sportradar/api/basketball/plays/lineup_change.rb,
lib/sportradar/api/basketball/plays/personal_foul.rb,
lib/sportradar/api/basketball/plays/shooting_foul.rb,
lib/sportradar/api/football/stat_pack/field_goals.rb,
lib/sportradar/api/football/stat_pack/int_returns.rb,
lib/sportradar/api/basketball/plays/offensive_foul.rb,
lib/sportradar/api/basketball/plays/technical_foul.rb,
lib/sportradar/api/basketball/plays/two_point_made.rb,
lib/sportradar/api/basketball/plays/two_point_miss.rb,
lib/sportradar/api/football/nfl/league_depth_chart.rb,
lib/sportradar/api/football/stat_pack/extra_points.rb,
lib/sportradar/api/football/stat_pack/kick_returns.rb,
lib/sportradar/api/football/stat_pack/misc_returns.rb,
lib/sportradar/api/football/stat_pack/punt_returns.rb,
lib/sportradar/api/basketball/plays/clear_path_foul.rb,
lib/sportradar/api/basketball/plays/free_throw_made.rb,
lib/sportradar/api/basketball/plays/free_throw_miss.rb,
lib/sportradar/api/basketball/plays/official_timeout.rb,
lib/sportradar/api/basketball/plays/three_point_made.rb,
lib/sportradar/api/basketball/plays/three_point_miss.rb,
lib/sportradar/api/basketball/plays/default_violation.rb,
lib/sportradar/api/basketball/plays/jumpball_violation.rb,
lib/sportradar/api/basketball/plays/defensive_goal_tending.rb,
lib/sportradar/api/basketball/plays/defensive_three_seconds.rb

Overview

TODO - rework this to v3 of API only

Defined Under Namespace

Modules: Api

Class Method Summary collapse

Class Method Details

.ordinalize_period(i) ⇒ Object



91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/sportradar/api.rb', line 91

def self.ordinalize_period(i)
  case i
  when 1
    '1st'
  when 2
    '2nd'
  when 3
    '3rd'
  when nil
    ''
  else
    "#{i}th"
  end
end