Class: SXS::Publisher
- Inherits:
-
Object
- Object
- SXS::Publisher
- Defined in:
- lib/sxs/publisher.rb
Instance Method Summary collapse
-
#initialize(queue_url, provider:) ⇒ Publisher
constructor
A new instance of Publisher.
- #publish(body) ⇒ Object
Constructor Details
#initialize(queue_url, provider:) ⇒ Publisher
Returns a new instance of Publisher.
5 6 7 8 |
# File 'lib/sxs/publisher.rb', line 5 def initialize(queue_url, provider:) @provider = provider @queue_url = queue_url end |
Instance Method Details
#publish(body) ⇒ Object
10 11 12 |
# File 'lib/sxs/publisher.rb', line 10 def publish(body) publisher.publish(body) end |