Class: Tenk::Users
Overview
API methods for User resource which represents a single person (even if they are not actually able to log in to 10k)
Defined Under Namespace
Classes: Assignments, CreateRequest, GetRequest, ListRequest, TimeEntries, UpdateRequest, UserResource
Instance Method Summary collapse
-
#assignments ⇒ Users::Assignments
An Assignment subresource of Users.
-
#create(opts = {}) ⇒ Hashie::Mash
Create a User.
-
#get(id, opts = {}) ⇒ Hashie::Mash
Get a User.
-
#list(opts = {}) ⇒ Hashie::Mash
List Users.
-
#tags ⇒ Tenk::Tags
A TimeEntry subresource of Users.
-
#time_entries ⇒ Users::TimeEntries
A TimeEntry subresource of Users.
-
#update(id, opts = {}) ⇒ Hashie::Mash
Update a User.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Tenk::Resource
Instance Method Details
#assignments ⇒ Users::Assignments
An Assignment subresource of Users
56 57 58 |
# File 'lib/users.rb', line 56 def assignments @_assignments ||= Users::Assignments.new(@_client) end |
#create(opts = {}) ⇒ Hashie::Mash
Create a User
87 88 89 |
# File 'lib/users.rb', line 87 def create(opts = {}) super(CreateRequest.new(opts)) end |
#get(id, opts = {}) ⇒ Hashie::Mash
Get a User
79 80 81 |
# File 'lib/users.rb', line 79 def get(id, opts = {}) super(id, GetRequest.new(opts)) end |
#list(opts = {}) ⇒ Hashie::Mash
List Users
70 71 72 |
# File 'lib/users.rb', line 70 def list(opts = {}) super(ListRequest.new(opts)) end |
#tags ⇒ Tenk::Tags
A TimeEntry subresource of Users
62 63 64 |
# File 'lib/users.rb', line 62 def @_tags ||= Tenk::Tags.new(@_client) end |
#time_entries ⇒ Users::TimeEntries
A TimeEntry subresource of Users
50 51 52 |
# File 'lib/users.rb', line 50 def time_entries @_time_entries ||= Users::TimeEntries.new(@_client) end |
#update(id, opts = {}) ⇒ Hashie::Mash
Update a User
96 97 98 |
# File 'lib/users.rb', line 96 def update(id, opts = {}) super(id, UpdateRequest.new(opts)) end |