Module: Slack::Endpoint::Reminders
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/reminders.rb
Instance Method Summary collapse
-
#reminders_add(options = {}) ⇒ Object
Creates a reminder.
-
#reminders_complete(options = {}) ⇒ Object
Marks a reminder as complete.
-
#reminders_delete(options = {}) ⇒ Object
Deletes a reminder.
-
#reminders_info(options = {}) ⇒ Object
Gets information about a reminder.
-
#reminders_list(options = {}) ⇒ Object
Lists all reminders created by or for a given user.
Instance Method Details
#reminders_add(options = {}) ⇒ Object
Creates a reminder.
18 19 20 21 22 |
# File 'lib/slack/endpoint/reminders.rb', line 18 def reminders_add(={}) throw ArgumentError.new("Required arguments :text missing") if [:text].nil? throw ArgumentError.new("Required arguments :time missing") if [:time].nil? post("reminders.add", ) end |
#reminders_complete(options = {}) ⇒ Object
Marks a reminder as complete.
32 33 34 35 |
# File 'lib/slack/endpoint/reminders.rb', line 32 def reminders_complete(={}) throw ArgumentError.new("Required arguments :reminder missing") if [:reminder].nil? post("reminders.complete", ) end |
#reminders_delete(options = {}) ⇒ Object
Deletes a reminder.
45 46 47 48 |
# File 'lib/slack/endpoint/reminders.rb', line 45 def reminders_delete(={}) throw ArgumentError.new("Required arguments :reminder missing") if [:reminder].nil? post("reminders.delete", ) end |
#reminders_info(options = {}) ⇒ Object
Gets information about a reminder.
58 59 60 61 |
# File 'lib/slack/endpoint/reminders.rb', line 58 def reminders_info(={}) throw ArgumentError.new("Required arguments :reminder missing") if [:reminder].nil? post("reminders.info", ) end |
#reminders_list(options = {}) ⇒ Object
Lists all reminders created by or for a given user.
69 70 71 |
# File 'lib/slack/endpoint/reminders.rb', line 69 def reminders_list(={}) post("reminders.list", ) end |