Class: AWS::SNS::TopicSubscriptionCollection
- Inherits:
-
SubscriptionCollection
- Object
- SubscriptionCollection
- AWS::SNS::TopicSubscriptionCollection
- Includes:
- Core::Model, 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.
Attributes included from Core::Model
Instance Method Summary collapse
-
#initialize(topic, opts = {}) ⇒ TopicSubscriptionCollection
constructor
A new instance of TopicSubscriptionCollection.
Methods included from Core::Model
#client, #config_prefix, #inspect
Methods inherited from SubscriptionCollection
Constructor Details
#initialize(topic, opts = {}) ⇒ TopicSubscriptionCollection
Returns a new instance of TopicSubscriptionCollection.
35 36 37 38 |
# File 'lib/aws/sns/topic_subscription_collection.rb', line 35 def initialize(topic, opts = {}) @topic = topic super end |
Instance Attribute Details
#topic ⇒ Topic (readonly)
belong.
32 33 34 |
# File 'lib/aws/sns/topic_subscription_collection.rb', line 32 def topic @topic end |