Class: ModSpox::Messages::Incoming::Kick

Inherits:
Message
  • Object
show all
Defined in:
lib/mod_spox/messages/incoming/Kick.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, channel, kicker, kickee, reason) ⇒ Kick

Returns a new instance of Kick.



15
16
17
18
19
20
21
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 15

def initialize(raw, channel, kicker, kickee, reason)
    super(raw)
    @channel = channel
    @kicker = kicker
    @kickee = kickee
    @reason = reason
end

Instance Attribute Details

#channelObject (readonly)

channel user was kicked from



7
8
9
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 7

def channel
  @channel
end

#kickeeObject (readonly)

nick that was kicked



11
12
13
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 11

def kickee
  @kickee
end

#kickerObject (readonly)

nick that performed the kick



9
10
11
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 9

def kicker
  @kicker
end

#reasonObject (readonly)

reason for kick



13
14
15
# File 'lib/mod_spox/messages/incoming/Kick.rb', line 13

def reason
  @reason
end