Module: RelicLink::Coh3::Api::Endpoints::Advertisements
- Included in:
- RelicLink::Coh3::Api::Endpoints
- Defined in:
- lib/relic_link/coh3/api/endpoints/advertisements.rb
Overview
Endpoint definitions for the internal CoH3 advertisement API.
Instance Method Summary collapse
-
#find_advertisements(options = {}) ⇒ Object
Fetch active game lobbies (ranked and custom) for a given match type.
-
#find_observable_advertisements(options = {}) ⇒ Object
Fetch games currently observable by spectators.
Instance Method Details
#find_advertisements(options = {}) ⇒ Object
Fetch active game lobbies (ranked and custom) for a given match type.
57 58 59 60 61 |
# File 'lib/relic_link/coh3/api/endpoints/advertisements.rb', line 57 def find_advertisements( = {}) () get(advertisements, 'findAdvertisements', advertisements_params()) end |
#find_observable_advertisements(options = {}) ⇒ Object
Fetch games currently observable by spectators.
This is a private internal Relic endpoint that returns games currently open to spectators. Both data_checksum and app_binary_checksum act as version-compatibility filters — only games matching both checksums are returned.
31 32 33 34 35 |
# File 'lib/relic_link/coh3/api/endpoints/advertisements.rb', line 31 def find_observable_advertisements( = {}) () get(advertisements, 'findObservableAdvertisements', observable_advertisements_params()) end |