Class: Tenk::Projects::Phases
- Inherits:
-
ProjectResource
- Object
- ProjectResource
- Tenk::Projects::Phases
- Defined in:
- lib/projects/phases.rb
Overview
The API methods for Phases, which represent a part of a project with its own budget and resources
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.
-
#get(project_id, phase_id, opts = {}) ⇒ Hashie::Mash
Get a single Assignment for this project.
-
#list(project_id, opts = {}) ⇒ Hashie::Mash
List Phases for a single project.
-
#update(project_id, phase_id, opts = {}) ⇒ Hashie::Mash
Update an Assignment for this project.
Methods inherited from ProjectResource
#delete, #initialize, #resource_root
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
49 50 51 |
# File 'lib/projects/phases.rb', line 49 def create(project_id, opts = {}) super(project_id, CreateRequest.new(opts)) end |
#get(project_id, phase_id, opts = {}) ⇒ Hashie::Mash
Get a single Assignment for this project
40 41 42 |
# File 'lib/projects/phases.rb', line 40 def get(project_id, phase_id, opts = {}) super(project_id, phase_id, GetRequest.new(opts)) end |
#list(project_id, opts = {}) ⇒ Hashie::Mash
List Phases for a single project
30 31 32 |
# File 'lib/projects/phases.rb', line 30 def list(project_id, opts = {}) super(project_id, ListRequest.new(opts)) end |
#update(project_id, phase_id, opts = {}) ⇒ Hashie::Mash
Update an Assignment for this project
59 60 61 |
# File 'lib/projects/phases.rb', line 59 def update(project_id, phase_id, opts = {}) super(project_id, phase_id, UpdateRequest.new(opts)) end |