Module: Clubhouse::APIActions

Included in:
Client
Defined in:
lib/clubhouse/api_actions.rb

Instance Method Summary collapse

Instance Method Details

#find(clazz, path, id) ⇒ Object



5
6
7
8
# File 'lib/clubhouse/api_actions.rb', line 5

def find(clazz, path, id)
  payload = get("#{path}/#{id}")
  clazz.new.update_object_from_payload(payload)
end