Class: SXS::Publisher

Inherits:
Object
  • Object
show all
Defined in:
lib/sxs/publisher.rb

Instance Method Summary collapse

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