Class: Eventboss::Publisher
- Inherits:
-
Object
- Object
- Eventboss::Publisher
- Defined in:
- lib/eventboss/publisher.rb
Instance Method Summary collapse
-
#initialize(event_name, sns_client, configuration, opts = {}) ⇒ Publisher
constructor
A new instance of Publisher.
- #publish(payload) ⇒ Object
Constructor Details
#initialize(event_name, sns_client, configuration, opts = {}) ⇒ Publisher
Returns a new instance of Publisher.
5 6 7 8 9 10 |
# File 'lib/eventboss/publisher.rb', line 5 def initialize(event_name, sns_client, configuration, opts = {}) @event_name = event_name @sns_client = sns_client @configuration = configuration @source = configuration.eventboss_app_name unless opts[:generic] end |