Represents the collection of all subscriptions for a particular topic. For example:
# get the e-mail addressess that receive plain-text # messages sent to the topic topic.subscriptions. select { |s| s.protocol == :email }. map(&:endpoint)
@return [Topic] The topic to which all the subscriptions belong.
@private
# File lib/aws/sns/topic_subscription_collection.rb, line 35 def initialize(topic, opts = {}) @topic = topic super end
@private
# File lib/aws/sns/topic_subscription_collection.rb, line 42 def list_request :list_subscriptions_by_topic end
@private
# File lib/aws/sns/topic_subscription_collection.rb, line 48 def request_opts { :topic_arn => topic.arn } end