Class: AwsRegion::AwsSns
- Inherits:
-
Object
- Object
- AwsRegion::AwsSns
- Defined in:
- lib/aws_region.rb
Instance Attribute Summary collapse
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize(region) ⇒ AwsSns
constructor
A new instance of AwsSns.
-
#publish(topic_arn, subject) ⇒ Object
, message).
Constructor Details
#initialize(region) ⇒ AwsSns
Returns a new instance of AwsSns.
138 139 140 |
# File 'lib/aws_region.rb', line 138 def initialize(region) @region = region end |
Instance Attribute Details
#region ⇒ Object
Returns the value of attribute region.
137 138 139 |
# File 'lib/aws_region.rb', line 137 def region @region end |
Instance Method Details
#publish(topic_arn, subject) ⇒ Object
, message)
141 142 143 |
# File 'lib/aws_region.rb', line 141 def publish(topic_arn, subject) #, message) @region.sns.publish(topic_arn: topic_arn, message: "unused for texts", subject: subject) end |