Class: BlizzardApi::Starcraft::Ladder
- Defined in:
- lib/blizzard_api_rb/starcraft/community/ladder.rb
Overview
This class allows access to Starcraft II ladder data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Starcraft.ladder
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
-
#grandmaster(region_id, **options) ⇒ Object
Grandmaster endpoint.
-
#season(region_id, **options) ⇒ Object
Season endpoint.
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Starcraft::Request
Instance Method Details
#grandmaster(region_id, **options) ⇒ Object
Note:
This gem do not support nor will support China endpoints
Grandmaster endpoint
18 19 20 21 |
# File 'lib/blizzard_api_rb/starcraft/community/ladder.rb', line 18 def grandmaster(region_id, **) reg = resolve_region(region_id) api_request "#{base_url(:community)}/ladder/grandmaster/#{reg}", **{ ttl: CACHE_DAY }.merge() end |
#season(region_id, **options) ⇒ Object
Note:
This gem do not support nor will support China endpoints
Season endpoint
28 29 30 31 |
# File 'lib/blizzard_api_rb/starcraft/community/ladder.rb', line 28 def season(region_id, **) reg = resolve_region(region_id) api_request "#{base_url(:community)}/ladder/season/#{reg}", **{ ttl: CACHE_DAY }.merge() end |