Class: Shoryuken::SnsArn

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

Instance Method Summary collapse

Constructor Details

#initialize(topic) ⇒ SnsArn


3
4
5
# File 'lib/shoryuken/sns_arn.rb', line 3

def initialize(topic)
  @topic = topic
end

Instance Method Details

#to_sObject


7
8
9
# File 'lib/shoryuken/sns_arn.rb', line 7

def to_s
  @arn ||= "arn:aws:sns:#{region}:#{account_id}:#{@topic}"
end