Class: Tenk::Projects::Assignments
- Inherits:
-
ProjectResource
- Object
- ProjectResource
- Tenk::Projects::Assignments
- Defined in:
- lib/projects/assignments.rb
Overview
The API methods for Assignments which represent that a given user is assigned to a project or phase
Defined Under Namespace
Classes: CreateRequest, GetRequest, ListRequest, UpdateRequest
Instance Method Summary collapse
-
#create(project_id, opts = {}) ⇒ Hashie::Mash
Create a new Assignment for this project.
-
#delete(project_id, assignment_id) ⇒ bool
Delete an Assignment for this project.
-
#get(project_id, assignment_id, opts = {}) ⇒ Hashie::Mash
Get a single Assignment for this project.
-
#list(project_id, opts = {}) ⇒ Hashie::Mash
List Assignments for a single project.
-
#update(project_id, assignment_id, opts = {}) ⇒ Hashie::Mash
Update an Assignment for this project.
Methods inherited from ProjectResource
Constructor Details
This class inherits a constructor from Tenk::Projects::ProjectResource
Instance Method Details
#create(project_id, opts = {}) ⇒ Hashie::Mash
Create a new Assignment for this project
58 59 60 |
# File 'lib/projects/assignments.rb', line 58 def create(project_id, opts = {}) super(project_id, CreateRequest.new(opts)) end |
#delete(project_id, assignment_id) ⇒ bool
Delete an Assignment for this project
76 77 78 |
# File 'lib/projects/assignments.rb', line 76 def delete(project_id, assignment_id) super(project_id, assignment_id) end |
#get(project_id, assignment_id, opts = {}) ⇒ Hashie::Mash
Get a single Assignment for this project
49 50 51 |
# File 'lib/projects/assignments.rb', line 49 def get(project_id, assignment_id, opts = {}) super(project_id, assignment_id, GetRequest.new(opts)) end |
#list(project_id, opts = {}) ⇒ Hashie::Mash
List Assignments for a single project
39 40 41 |
# File 'lib/projects/assignments.rb', line 39 def list(project_id, opts = {}) super(project_id, ListRequest.new(opts)) end |
#update(project_id, assignment_id, opts = {}) ⇒ Hashie::Mash
Update an Assignment for this project
68 69 70 |
# File 'lib/projects/assignments.rb', line 68 def update(project_id, assignment_id, opts = {}) super(project_id, assignment_id, UpdateRequest.new(opts)) end |