A Ruby interface for accessing the Guild Wars 2 API.
gem install gw2
Get all dynamic events
GW2::Event.all
Get all dynamic events from a specific world
GW2::Event.where(world_id: 1013)
Get all dynamic events from a specific map
GW2::Event.where(map_id: 39)
Get instances of a specific dynamic event
GW2::Event.where(event_id: "F5D23902-2D9A-4B58-8B7D-1EEA0067134D")
Note: you can use any combination of world_id, map_id and event_id for querying dynamic events.
Get all names of events, maps or worlds
GW2::Event.event_names
GW2::Event.map_names
GW2::Event.world_names
Get details of a guild
GW2::Guild.details(guild_id: "16DB5921-CF1B-48D2-A5A0-2F0AADD9765D")
GW2::Guild.details(guild_name: "Ruinous")
Get all discovered items
GW2::Item.all
Get details of a specific item
GW2::Item.details(38875)
Get all discovered recipes
GW2::Recipe.all
Get details of a specific recipe
GW2::Recipe.details(1275)
Get details of all the continents
GW2::Map.continents
Get all maps
GW2::Map.all
Get details about a specific map
GW2::Map.where(map_id: 80)
Get details about a map floor
GW2::Map.map_floor(1, 1)
Get all current matches
GW2::WvW.matches
Get details of a specific match
GW2::WvW.match_details("1-5")
Get all objective names
GW2::WvW.objective_names
Get the current build id
GW2::Misc.build
Get a list of all dyes
GW2::Misc.colors
Get commonly requested assets
GW2::Misc.files
Copyright (c) 2013-2014 Chris Rosario. See LICENSE for details.