Class: Setka::Workflow::Category
- Defined in:
- lib/setka/workflow/category.rb
Class Method Summary collapse
-
.create(body, options = {}) ⇒ Hash
Creates a category.
-
.delete(id, options = {}) ⇒ Hash
Deletes a category.
-
.update(id, body, options = {}) ⇒ Hash
Updates a category.
Methods inherited from Resource
actual_client, collection, member
Class Method Details
.create(body, options = {}) ⇒ Hash
Creates a category.
17 18 19 |
# File 'lib/setka/workflow/category.rb', line 17 def create(body, = {}) collection(:post, nil, body, ) end |
.delete(id, options = {}) ⇒ Hash
Deletes a category.
47 48 49 |
# File 'lib/setka/workflow/category.rb', line 47 def delete(id, = {}) member(:delete, id, nil, nil, ) end |
.update(id, body, options = {}) ⇒ Hash
Updates a category.
33 34 35 |
# File 'lib/setka/workflow/category.rb', line 33 def update(id, body, = {}) member(:patch, id, nil, body, ) end |