Class: GW2::API::Recipe

Inherits:
Object
  • Object
show all
Defined in:
lib/gw2/api/recipe.rb

Class Method Summary collapse

Class Method Details

.allObject



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

def self.all
  #TODO: Implement
end

.search(params = {}) ⇒ Object

Recipies Search by component type

Argument: a hash containing either an :input or :output key which references either an integer item id, or string representing an item id If both input and output are specified, the API will only call with the input argument. As per the API, these parameters are mutually exclusive (wiki.guildwars2.com/wiki/API:2/recipes/search)



21
22
23
24
25
# File 'lib/gw2/api/recipe.rb', line 21

def self.search params={}
  #type = input or output
  #id = item id
  #TODO: Implement
end

.where(ids = []) ⇒ Object

Recipes API with supplied item identifiers.

Caller may supply one (or more) identifiers as an array.



12
13
14
# File 'lib/gw2/api/recipe.rb', line 12

def self.where ids=[]
  #TODO: Implement
end