Module: RelicLink::Coh3::Api::Endpoints::Leaderboards
- Included in:
- RelicLink::Coh3::Api::Endpoints
- Defined in:
- lib/relic_link/coh3/api/endpoints/leaderboards.rb,
lib/relic_link/coh3/api/endpoints/leaderboards/ids.rb,
lib/relic_link/coh3/api/endpoints/leaderboards/sort.rb
Overview
Endpoint definitions for the CoH3 leaderboards API.
Defined Under Namespace
Instance Method Summary collapse
-
#available_leaderboards ⇒ Object
List available leaderboards and associated metadata.
-
#leaderboard(options = {}) ⇒ Object
Retrieve the leaderboard with the given ID.
Instance Method Details
#available_leaderboards ⇒ Object
List available leaderboards and associated metadata.
16 17 18 |
# File 'lib/relic_link/coh3/api/endpoints/leaderboards.rb', line 16 def available_leaderboards get(stats, 'getAvailableLeaderboards') end |
#leaderboard(options = {}) ⇒ Object
Retrieve the leaderboard with the given ID. For your convenience a list of IDs is provided inside Ids, or you can retrieve a list of available IDs using #available_leaderboards.
42 43 44 45 46 |
# File 'lib/relic_link/coh3/api/endpoints/leaderboards.rb', line 42 def leaderboard( = {}) raise ArgumentError, 'Required argument :leaderboard_id missing' if [:leaderboard_id].nil? get(stats, 'getLeaderboard2', format_sort_key()) end |