Sha256: 7f81919fa4102e3d54b4cfb040b0d9e2408dedf565e78f7a9842f864397d0b1d
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
module Propono class PublisherError < Exception end class Publisher include Sns def self.publish(topic, message) new.publish(topic, message) end def initialize end def publish(topic_id, message) raise PublisherError.new("Topic is nil") if topic_id.nil? raise PublisherError.new("Message is nil") if message.nil? topic_arn = TopicCreator.find_or_create(topic_id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
propono-0.0.1 | lib/propono/publisher.rb |