class Aws::Broker::Publisher
Public Class Methods
new(topic, message)
click to toggle source
# File lib/aws/broker/publisher.rb, line 7 def initialize(topic, message) @topic = topic @message = message end
Public Instance Methods
publish()
click to toggle source
# File lib/aws/broker/publisher.rb, line 12 def publish return unless enabled? create_topic sns.publish( topic_arn: @topic_arn, message: @message.to_json ) end