lib/slack/web/api/endpoints/tooling_tokens.rb in slack-ruby-client-1.1.0 vs lib/slack/web/api/endpoints/tooling_tokens.rb in slack-ruby-client-2.0.0

- old
+ new

@@ -12,10 +12,10 @@ # @option options [string] :refresh_token # The xoxe refresh token that was issued along with the old app configuration token. # @see https://api.slack.com/methods/tooling.tokens.rotate # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/tooling.tokens/tooling.tokens.rotate.json def tooling_tokens_rotate(options = {}) - throw ArgumentError.new('Required arguments :refresh_token missing') if options[:refresh_token].nil? + raise ArgumentError, 'Required arguments :refresh_token missing' if options[:refresh_token].nil? post('tooling.tokens.rotate', options) end end end end