class Sportradar::Configuration
Attributes
access_level[W]
api_keys[W]
base_uri[W]
filepath[W]
http[R]
Public Instance Methods
access_levels()
click to toggle source
# File lib/sportradar/client/configuration.rb, line 34 def access_levels { 'mlb' => ENV['SPORTRADAR_ACCESS_LEVEL_MLB'] || 'p', 'nba' => ENV['SPORTRADAR_ACCESS_LEVEL_NBA'] || 'p', 'nfl' => ENV['SPORTRADAR_ACCESS_LEVEL_NFL'] || 'p', 'nhl' => ENV['SPORTRADAR_ACCESS_LEVEL_NHL'] || 'o', } end
api_keys()
click to toggle source
# File lib/sportradar/client/configuration.rb, line 25 def api_keys { 'mlb' => ENV['SPORTRADAR_API_KEY_MLB'], 'nba' => ENV['SPORTRADAR_API_KEY_NBA'], 'nfl' => ENV['SPORTRADAR_API_KEY_NFL'], 'nhl' => ENV['SPORTRADAR_API_KEY_NHL'], } end
api_version()
click to toggle source
# File lib/sportradar/client/configuration.rb, line 43 def api_version { 'mlb' => ENV['SPORTRADAR_API_VERSION_MLB'] || '5', 'nba' => ENV['SPORTRADAR_API_VERSION_NBA'] || '3', 'nfl' => ENV['SPORTRADAR_API_VERSION_NFL'] || '1', 'nhl' => ENV['SPORTRADAR_API_VERSION_NHL'] || '4', } end
base_uri()
click to toggle source
# File lib/sportradar/client/configuration.rb, line 52 def base_uri @base_uri ||= URI('https://api.sportradar.us') end
filepath()
click to toggle source
# File lib/sportradar/client/configuration.rb, line 63 def filepath @filepath ||= ENV['SPORTRADAR_FILE_PATH'] end