Class: Liam::Producer
- Inherits:
-
Object
- Object
- Liam::Producer
- Extended by:
- Forwardable
- Includes:
- Common
- Defined in:
- lib/liam/producer.rb
Constant Summary collapse
- UNSUPPORTED_MESSAGE_ERROR =
'Unsupported message argument'
- UNSUPPORTED_TOPIC_ERROR =
'Unsupported topic argument'
Constants included from Common
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message:, options: {}, topic:) ⇒ Producer
constructor
A new instance of Producer.
Methods included from Common
#client_options, #credentials, #env_credentials
Constructor Details
#initialize(message:, options: {}, topic:) ⇒ Producer
Returns a new instance of Producer.
17 18 19 20 21 |
# File 'lib/liam/producer.rb', line 17 def initialize(message:, options: {}, topic:) @message = @options = @topic = topic end |
Class Method Details
.message(*args) ⇒ Object
23 24 25 |
# File 'lib/liam/producer.rb', line 23 def self.(*args) new(*args).send(:execute) end |