Module: GW2::Misc

Extended by:
Resource
Defined in:
lib/gw2/misc.rb

Constant Summary

Constants included from Resource

Resource::BASE_URL_V1, Resource::BASE_URL_V2

Constants included from HTTPS

HTTPS::DEFAULT_REQUEST

Class Method Summary collapse

Methods included from Resource

get

Methods included from JSON

#parse

Methods included from HTTPS

#query_string, #request

Class Method Details

.buildObject



5
6
7
# File 'lib/gw2/misc.rb', line 5

def self.build
  get("/build.json")["id"]
end

.filesObject



9
10
11
# File 'lib/gw2/misc.rb', line 9

def self.files
  get("/files.json", query: { ids: "all" })
end

.worldsObject



13
14
15
# File 'lib/gw2/misc.rb', line 13

def self.worlds
  get("/worlds.json", { ids: "all" })
end