Class: AWS::SNS::TopicSubscriptionCollection
- Inherits:
-
SubscriptionCollection
- Object
- SubscriptionCollection
- AWS::SNS::TopicSubscriptionCollection
- 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
-
#topic ⇒ Topic
readonly
belong.
Method Summary
Methods inherited from SubscriptionCollection
Methods included from Core::Collection
#each, #each_batch, #enum, #first, #in_groups_of, #page
Instance Attribute Details
#topic ⇒ Topic (readonly)
belong.
39 40 41 |
# File 'lib/aws/sns/topic_subscription_collection.rb', line 39 def topic @topic end |