Class: Tenk::Projects::BillRates
- Inherits:
-
ProjectResource
- Object
- ProjectResource
- Tenk::Projects::BillRates
- Defined in:
- lib/projects/bill_rates.rb
Overview
The API methods for BillRate resources
Defined Under Namespace
Classes: CreateRequest, ListRequest, UpdateRequest
Instance Method Summary collapse
-
#create(project_id, opts = {}) ⇒ Hashie::Mash
Create a new BillRate for this project.
-
#get(project_id, bill_rate_id) ⇒ Hashie::Mash
Get a single BillRate for this project.
-
#list(project_id, opts = {}) ⇒ Hashie::Mash
List BillRates for a single project.
-
#update(project_id, bill_rate_id, opts = {}) ⇒ Hashie::Mash
Update an BillRate 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 BillRate for this project
38 39 40 |
# File 'lib/projects/bill_rates.rb', line 38 def create(project_id, opts = {}) super(project_id, CreateRequest.new(opts)) end |
#get(project_id, bill_rate_id) ⇒ Hashie::Mash
Get a single BillRate for this project
29 30 31 |
# File 'lib/projects/bill_rates.rb', line 29 def get(project_id, bill_rate_id) super(project_id, bill_rate_id, {}) end |
#list(project_id, opts = {}) ⇒ Hashie::Mash
List BillRates for a single project
20 21 22 |
# File 'lib/projects/bill_rates.rb', line 20 def list(project_id, opts = {}) super(project_id, ListRequest.new(opts)) end |
#update(project_id, bill_rate_id, opts = {}) ⇒ Hashie::Mash
Update an BillRate for this project
48 49 50 |
# File 'lib/projects/bill_rates.rb', line 48 def update(project_id, bill_rate_id, opts = {}) super(project_id, bill_rate_id, UpdateRequest.new(opts)) end |