Class: BlizzardApi::Starcraft::Account
- Defined in:
- lib/blizzard_api_rb/starcraft/community/account.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.account
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
-
#player(account_id, **options) ⇒ Object
Returns information about a player account.
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Starcraft::Request
Instance Method Details
#player(account_id, **options) ⇒ Object
Returns information about a player account
18 19 20 |
# File 'lib/blizzard_api_rb/starcraft/community/account.rb', line 18 def player(account_id, **) api_request "#{base_url(:community)}/player/#{account_id}", **{ ttl: CACHE_DAY }.merge() end |