Module: GW2::Map
- Defined in:
- lib/gw2/map.rb,
lib/gw2/map/maps.rb,
lib/gw2/map/map_floor.rb,
lib/gw2/map/continents.rb
Constant Summary collapse
- PARAMS_FILTER =
[:map_id]
Constants included from HTTPS
Class Method Summary collapse
- .all ⇒ Object
- .continents ⇒ Object
- .map_floor(continent_id, floor) ⇒ Object
- .where(query_hash = {}) ⇒ Object
Methods included from HTTPS
Methods included from JSON
Class Method Details
.all ⇒ Object
5 6 7 |
# File 'lib/gw2/map/maps.rb', line 5 def self.all self.where end |
.continents ⇒ Object
3 4 5 |
# File 'lib/gw2/map/continents.rb', line 3 def self.continents parse(request("/continents.json").body) end |
.map_floor(continent_id, floor) ⇒ Object
3 4 5 |
# File 'lib/gw2/map/map_floor.rb', line 3 def self.map_floor(continent_id, floor) parse(request("/map_floor.json", query: { continent_id: continent_id, floor: floor }).body) end |
.where(query_hash = {}) ⇒ Object
9 10 11 |
# File 'lib/gw2/map/maps.rb', line 9 def self.where(query_hash = {}) parse(request("/maps.json", query: query_hash).body) end |