lib/slack/web/api/endpoints/admin_teams_owners.rb in slack-ruby-client-1.1.0 vs lib/slack/web/api/endpoints/admin_teams_owners.rb in slack-ruby-client-2.0.0
- old
+ new
@@ -16,10 +16,10 @@
# @option options [integer] :limit
# The maximum number of items to return. Must be between 1 - 1000 both inclusive.
# @see https://api.slack.com/methods/admin.teams.owners.list
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.owners/admin.teams.owners.list.json
def admin_teams_owners_list(options = {})
- throw ArgumentError.new('Required arguments :team_id missing') if options[:team_id].nil?
+ raise ArgumentError, 'Required arguments :team_id missing' if options[:team_id].nil?
if block_given?
Pagination::Cursor.new(self, :admin_teams_owners_list, options).each do |page|
yield page
end
else