Module: Pivit::Client::Project
- Included in:
- Pivit::Client
- Defined in:
- lib/pivit/client/project.rb
Overview
Project management
Instance Method Summary collapse
-
#create_project(options = {}) ⇒ Hashie::Mash
Create a Project.
-
#project(project_id, options = {}) ⇒ Hashie::Mash
Retrieve a single project from your account.
-
#projects(options = {}) ⇒ Hashie::Mash
Retrieve all projects from your account.
Instance Method Details
#create_project(options = {}) ⇒ Hashie::Mash
Create a Project
Provide the parameters you wantt to use for the project via the options hash
49 50 51 52 |
# File 'lib/pivit/client/project.rb', line 49 def create_project( = {}) = { :project => } post("projects", ).project end |
#project(project_id, options = {}) ⇒ Hashie::Mash
Retrieve a single project from your account
19 20 21 |
# File 'lib/pivit/client/project.rb', line 19 def project(project_id, = {}) get("projects/#{project_id}", ).project end |
#projects(options = {}) ⇒ Hashie::Mash
Retrieve all projects from your account
33 34 35 |
# File 'lib/pivit/client/project.rb', line 33 def projects( = {}) get("projects", ).projects end |