Method: Trello::Client#find

Defined in:
lib/trello/client.rb

#find(path, id, params = {}) ⇒ Object

Finds given resource by id

Examples:

client.find(:board, "board1234")
client.find(:member, "user1234")


43
44
45
46
47
48
49
# File 'lib/trello/client.rb', line 43

def find(path, id, params = {})
  response = get("/#{path.to_s.pluralize}/#{id}", params)
  trello_class = class_from_path(path)
  trello_class.parse response do |data|
    data.client = self
  end
end