Class: Shoryuken::SnsArn
- Inherits:
-
Object
- Object
- Shoryuken::SnsArn
- Defined in:
- lib/shoryuken/sns_arn.rb
Instance Method Summary collapse
-
#initialize(topic) ⇒ SnsArn
constructor
A new instance of SnsArn.
- #to_s ⇒ Object
Constructor Details
#initialize(topic) ⇒ SnsArn
Returns a new instance of SnsArn.
3 4 5 |
# File 'lib/shoryuken/sns_arn.rb', line 3 def initialize(topic) @topic = topic end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/shoryuken/sns_arn.rb', line 7 def to_s @arn ||= "arn:aws:sns:#{region}:#{account_id}:#{@topic}" end |