Class: Tenk::TimeEntries
Overview
API methods for TimeEntries resources, which represent time that users are tracking against projects or phases
Defined Under Namespace
Classes: CreateRequest, GetRequest, ListRequest, UpdateRequest
Instance Method Summary collapse
-
#create(opts = {}) ⇒ Hashie::Mash
Create a TimeEntry for this account.
-
#get(id) ⇒ Hashie::Mash
Get a single TimeEntry for an account.
-
#list(opts = {}) ⇒ Hashie::Mash
List TimeEntries for an account.
-
#update(id, opts = {}) ⇒ Hashie::Mash
Update a TimeEntry for this account.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Tenk::Resource
Instance Method Details
#create(opts = {}) ⇒ Hashie::Mash
Create a TimeEntry for this account
54 55 56 |
# File 'lib/time_entries.rb', line 54 def create(opts = {}) super(CreateRequest.new(opts)) end |
#get(id) ⇒ Hashie::Mash
Get a single TimeEntry for an account
46 47 48 |
# File 'lib/time_entries.rb', line 46 def get(id) super(id, {}) end |
#list(opts = {}) ⇒ Hashie::Mash
List TimeEntries for an account
39 40 41 |
# File 'lib/time_entries.rb', line 39 def list(opts = {}) super(ListRequest.new(opts)) end |
#update(id, opts = {}) ⇒ Hashie::Mash
Update a TimeEntry for this account
63 64 65 |
# File 'lib/time_entries.rb', line 63 def update(id, opts = {}) super(id, UpdateRequest.new(opts)) end |