Class: SSCBot::ChatLog::KillMessage
- Inherits:
-
Message
- Object
- Message
- SSCBot::ChatLog::KillMessage
show all
- Defined in:
- lib/ssc.bot/chat_log/messages.rb
Overview
Constant Summary
Constants inherited
from Message
Message::TYPES
Instance Attribute Summary collapse
Attributes inherited from Message
#line, #type
Instance Method Summary
collapse
Methods inherited from Message
add_type, #type?, valid_type?
Constructor Details
#initialize(line, killed:, bounty:, killer:) ⇒ KillMessage
Returns a new instance of KillMessage.
67
68
69
70
71
72
73
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 67
def initialize(line,killed:,bounty:,killer:)
super(line,type: :kill)
@bounty = bounty
@killed = killed
@killer = killer
end
|
Instance Attribute Details
#bounty ⇒ Object
63
64
65
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 63
def bounty
@bounty
end
|
#killed ⇒ Object
64
65
66
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 64
def killed
@killed
end
|
#killer ⇒ Object
65
66
67
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 65
def killer
@killer
end
|