Class: Scintillation::MessageQueue::Message
- Inherits:
-
Object
- Object
- Scintillation::MessageQueue::Message
- Defined in:
- lib/scintillation/message_queue/message.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
(also: #to_s)
Returns the value of attribute text.
-
#tone ⇒ Object
Returns the value of attribute tone.
Instance Method Summary collapse
- #==(message) ⇒ Object
-
#initialize(text, tone) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(text, tone) ⇒ Message
Returns a new instance of Message.
4 5 6 |
# File 'lib/scintillation/message_queue/message.rb', line 4 def initialize(text, tone) self.text, self.tone = text, tone end |
Instance Attribute Details
#text ⇒ Object Also known as: to_s
Returns the value of attribute text.
9 10 11 |
# File 'lib/scintillation/message_queue/message.rb', line 9 def text @text end |
#tone ⇒ Object
Returns the value of attribute tone.
8 9 10 |
# File 'lib/scintillation/message_queue/message.rb', line 8 def tone @tone end |
Instance Method Details
#==(message) ⇒ Object
17 18 19 |
# File 'lib/scintillation/message_queue/message.rb', line 17 def ==() text == .text && tone == .tone end |