Class: Fare::TopicAdapter

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

Class Method Summary collapse

Class Method Details

.create(topic_name) ⇒ Object



8
9
10
# File 'lib/fare/topic_adapter.rb', line 8

def self.create(topic_name)
  AWS::SNS.new.topics.create(topic_name)
end

.fetch(arn) ⇒ Object



4
5
6
# File 'lib/fare/topic_adapter.rb', line 4

def self.fetch(arn)
  AWS::SNS.new.topics[arn]
end