Class: BlizzardApi::Starcraft::League
- Defined in:
- lib/blizzard_api_rb/starcraft/game_data/league.rb
Overview
This class allows access to Starcraft II league data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Starcraft.league
Constant Summary
Constants inherited from Request
Constants inherited from Request
Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER
Constants included from ApiStandards
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#get(season_id, queue_id, team_type, league_id, **options) ⇒ Object
Return information about league.
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Starcraft::Request
Instance Method Details
#get(season_id, queue_id, team_type, league_id, **options) ⇒ Object
Return information about league
21 22 23 24 |
# File 'lib/blizzard_api_rb/starcraft/game_data/league.rb', line 21 def get(season_id, queue_id, team_type, league_id, **) opts = { ttl: CACHE_DAY }.merge() api_request "#{base_url(:game_data)}/league/#{season_id}/#{queue_id}/#{team_type}/#{league_id}", **opts end |