Class: Relayer::Event::Message
- Defined in:
- lib/relayer/event/message_event.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#message ⇒ Object
Returns the value of attribute message.
-
#sender ⇒ Object
Returns the value of attribute sender.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(sender, message, channel) ⇒ Message
constructor
A new instance of Message.
Methods inherited from Event
Constructor Details
#initialize(sender, message, channel) ⇒ Message
Returns a new instance of Message.
7 8 9 10 11 |
# File 'lib/relayer/event/message_event.rb', line 7 def initialize(sender, , channel) @sender = sender @message = @channel = channel end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
5 6 7 |
# File 'lib/relayer/event/message_event.rb', line 5 def channel @channel end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/relayer/event/message_event.rb', line 5 def @message end |
#sender ⇒ Object
Returns the value of attribute sender.
5 6 7 |
# File 'lib/relayer/event/message_event.rb', line 5 def sender @sender end |