lib/slack/endpoint/reminders.rb in slack-api-1.4.0 vs lib/slack/endpoint/reminders.rb in slack-api-1.5.0

- old
+ new

@@ -16,11 +16,10 @@ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.add.md # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.add.json def reminders_add(options={}) throw ArgumentError.new("Required arguments :text missing") if options[:text].nil? throw ArgumentError.new("Required arguments :time missing") if options[:time].nil? - options[:attachments] = options[:attachments].to_json if Hash === options[:attachments] post("reminders.add", options) end # # This method completes a reminder. @@ -30,11 +29,10 @@ # @see https://api.slack.com/methods/reminders.complete # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.complete.md # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.complete.json def reminders_complete(options={}) throw ArgumentError.new("Required arguments :reminder missing") if options[:reminder].nil? - options[:attachments] = options[:attachments].to_json if Hash === options[:attachments] post("reminders.complete", options) end # # This method deletes a reminder. @@ -44,11 +42,10 @@ # @see https://api.slack.com/methods/reminders.delete # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.delete.md # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.delete.json def reminders_delete(options={}) throw ArgumentError.new("Required arguments :reminder missing") if options[:reminder].nil? - options[:attachments] = options[:attachments].to_json if Hash === options[:attachments] post("reminders.delete", options) end # # This method returns information about a reminder. @@ -58,21 +55,19 @@ # @see https://api.slack.com/methods/reminders.info # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.info.md # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.info.json def reminders_info(options={}) throw ArgumentError.new("Required arguments :reminder missing") if options[:reminder].nil? - options[:attachments] = options[:attachments].to_json if Hash === options[:attachments] post("reminders.info", options) end # # This method lists all reminders created by or for a given user. # # @see https://api.slack.com/methods/reminders.list # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.list.md # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.list.json def reminders_list(options={}) - options[:attachments] = options[:attachments].to_json if Hash === options[:attachments] post("reminders.list", options) end end end