lib/rising_dragon/sns/publisher.rb in rising_dragon-0.3.1 vs lib/rising_dragon/sns/publisher.rb in rising_dragon-0.3.2
- old
+ new
@@ -6,10 +6,10 @@
@sns_client = sns_client
@topic_cache = {}
@use_cache = true # default true :)
end
- def send_event!(topic_name, event_type, data)
+ def publish(topic_name, event_type, data)
event = create_event(event_type, data)
topic = get_topic(topic_name)
@sns_client.publish(topic_arn: topic.topic_arn, message: event.to_json)
end