Module: Harvest::Client::Helpers::Find

Included in:
TimeEntries::TimeEntriesApi, Users::UsersApi
Defined in:
lib/harvest/client/helpers/find.rb

Instance Method Summary collapse

Instance Method Details

#find(id) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/harvest/client/helpers/find.rb', line 5

def find id
  res = Request.new(@connection, build_url(id)).get
  if res.success?
    resource.new(res.body)
  else
    res.error
  end
end