Class: Relayer::Event::Message

Inherits:
Event
  • Object
show all
Defined in:
lib/relayer/event/message_event.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#time

Instance Method Summary collapse

Methods inherited from Event

#time!

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, message, channel)
  @sender = sender
  @message = message
  @channel = channel
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



5
6
7
# File 'lib/relayer/event/message_event.rb', line 5

def channel
  @channel
end

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/relayer/event/message_event.rb', line 5

def message
  @message
end

#senderObject

Returns the value of attribute sender.



5
6
7
# File 'lib/relayer/event/message_event.rb', line 5

def sender
  @sender
end