Module: Slack::Web::Api::Endpoints::Canvases
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/canvases.rb
Instance Method Summary collapse
-
#canvases_create(options = {}) ⇒ Object
Create Canvas for a user.
-
#canvases_delete(options = {}) ⇒ Object
Deletes a canvas.
-
#canvases_edit(options = {}) ⇒ Object
Update an existing canvas.
Instance Method Details
#canvases_create(options = {}) ⇒ Object
Create Canvas for a user.
18 19 20 |
# File 'lib/slack/web/api/endpoints/canvases.rb', line 18 def canvases_create( = {}) post('canvases.create', ) end |
#canvases_delete(options = {}) ⇒ Object
Deletes a canvas.
29 30 31 32 |
# File 'lib/slack/web/api/endpoints/canvases.rb', line 29 def canvases_delete( = {}) raise ArgumentError, 'Required arguments :canvas_id missing' if [:canvas_id].nil? post('canvases.delete', ) end |
#canvases_edit(options = {}) ⇒ Object
Update an existing canvas
43 44 45 46 47 |
# File 'lib/slack/web/api/endpoints/canvases.rb', line 43 def canvases_edit( = {}) raise ArgumentError, 'Required arguments :canvas_id missing' if [:canvas_id].nil? raise ArgumentError, 'Required arguments :changes missing' if [:changes].nil? post('canvases.edit', ) end |