module Api::StaticSportEventInformation

Public Instance Methods

fixture(event_id, event_type = 'sr:match') click to toggle source

Fixture for a specified sport event

# File lib/betradar/api/static_sport_event_information.rb, line 4
def fixture(event_id, event_type = 'sr:match')
  get("sports/en/sport_events/#{event_type}:#{event_id}/fixture.xml")
end
fixture_changes() click to toggle source

Lists the IDs of all fixtures that have changed in the last 24 hours.

# File lib/betradar/api/static_sport_event_information.rb, line 26
def fixture_changes
  get('sports/en/fixtures/changes.xml')
end
live_schedule() click to toggle source

Currently live sport events

# File lib/betradar/api/static_sport_event_information.rb, line 16
def live_schedule
  get('sports/en/schedules/live/schedule.xml')
end
schedules(schedule_date = nil) click to toggle source

All sport events for a specific date

# File lib/betradar/api/static_sport_event_information.rb, line 9
def schedules(schedule_date = nil)
  schedule_date ||= Time.zone.today
  schedule_date = Time.zone.parse(schedule_date.to_s).to_date.to_s
  get("sports/en/schedules/#{schedule_date}/schedule.xml")
end
tournament_schedule(tournament_uid) click to toggle source

Schedule for a tournament

# File lib/betradar/api/static_sport_event_information.rb, line 21
def tournament_schedule(tournament_uid)
  get("sports/en/tournaments/#{tournament_uid}/schedule.xml")
end