Class: Pheromone::Messaging::Message
- Inherits:
-
Object
- Object
- Pheromone::Messaging::Message
- Defined in:
- lib/pheromone/messaging/message.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic:, message:, options: {}) ⇒ Message
constructor
A new instance of Message.
- #send! ⇒ Object
Constructor Details
#initialize(topic:, message:, options: {}) ⇒ Message
6 7 8 9 10 |
# File 'lib/pheromone/messaging/message.rb', line 6 def initialize(topic:, message:, options: {}) @topic = topic = = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
12 13 14 |
# File 'lib/pheromone/messaging/message.rb', line 12 def end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/pheromone/messaging/message.rb', line 12 def end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
12 13 14 |
# File 'lib/pheromone/messaging/message.rb', line 12 def topic @topic end |
Instance Method Details
#send! ⇒ Object
14 15 16 |
# File 'lib/pheromone/messaging/message.rb', line 14 def send! ::WaterDrop::Message.new(topic, , ).send! end |