Class: Mailtrap::ProjectsAPI
- Inherits:
-
Object
- Object
- Mailtrap::ProjectsAPI
- Includes:
- BaseAPI
- Defined in:
- lib/mailtrap/projects_api.rb
Instance Attribute Summary
Attributes included from BaseAPI
Instance Method Summary collapse
-
#create(options) ⇒ Project
Creates a new project.
-
#delete(project_id) ⇒ Object
Deletes a project.
-
#get(project_id) ⇒ Project
Retrieves a specific project.
-
#list ⇒ Array<Project>
Lists all projects for the account.
-
#update(project_id, options) ⇒ Project
Updates an existing project.
Methods included from BaseAPI
Instance Method Details
#create(options) ⇒ Project
Creates a new project
36 37 38 |
# File 'lib/mailtrap/projects_api.rb', line 36 def create() base_create() end |
#delete(project_id) ⇒ Object
Deletes a project
54 55 56 |
# File 'lib/mailtrap/projects_api.rb', line 54 def delete(project_id) base_delete(project_id) end |
#get(project_id) ⇒ Project
Retrieves a specific project
26 27 28 |
# File 'lib/mailtrap/projects_api.rb', line 26 def get(project_id) base_get(project_id) end |
#list ⇒ Array<Project>
Lists all projects for the account
18 19 20 |
# File 'lib/mailtrap/projects_api.rb', line 18 def list base_list end |
#update(project_id, options) ⇒ Project
Updates an existing project
46 47 48 |
# File 'lib/mailtrap/projects_api.rb', line 46 def update(project_id, ) base_update(project_id, ) end |