Module: GW2::WvW

Extended by:
HTTPS, JSON
Defined in:
lib/gw2/wvw.rb,
lib/gw2/wvw/matches.rb,
lib/gw2/wvw/match_details.rb,
lib/gw2/wvw/objective_names.rb

Constant Summary

Constants included from HTTPS

HTTPS::DEFAULT_REQUEST

Class Method Summary collapse

Methods included from HTTPS

query_string, request

Methods included from JSON

parse

Class Method Details

.match_details(match_id) ⇒ Object



3
4
5
# File 'lib/gw2/wvw/match_details.rb', line 3

def self.match_details(match_id)
  parse(request("/wvw/match_details.json", query: { match_id: match_id }).body)
end

.matchesObject



3
4
5
# File 'lib/gw2/wvw/matches.rb', line 3

def self.matches
  parse(request("/wvw/matches.json").body)
end

.objective_namesObject



3
4
5
# File 'lib/gw2/wvw/objective_names.rb', line 3

def self.objective_names
  parse(request("/wvw/objective_names.json").body)
end