Class: AwsRegion::AwsSns

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_region.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#regionObject

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