# File lib/aws/sns/subscription_collection.rb, line 44 def _each_item next_token, options, &block options[:next_token] = next_token if next_token resp = client.send(client_method, options.merge(request_options)) resp.data[:subscriptions].each do |sub| subscription = Subscription.new( sub[:subscription_arn], :endpoint => sub[:endpoint], :protocol => sub[:protocol].tr('-','_').to_sym, :owner_id => sub[:owner], :topic_arn => sub[:topic_arn], :config => config) yield(subscription) end resp.data[:next_token] end