Class: AWS::SNS::TopicSubscriptionCollection

Inherits:
SubscriptionCollection show all
Includes:
Enumerable
Defined in:
lib/aws/sns/topic_subscription_collection.rb

Overview

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)

Instance Attribute Summary collapse

Method Summary

Methods inherited from SubscriptionCollection

#[], #each

Instance Attribute Details

#topicTopic (readonly)

belong.

Returns:

  • (Topic)

    The topic to which all the subscriptions



35
36
37
# File 'lib/aws/sns/topic_subscription_collection.rb', line 35

def topic
  @topic
end