Class: SSCBot::ChatLog::KillMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/ssc.bot/chat_log/messages.rb

Overview

Author:

  • Jonathan Bradley Whited

Since:

  • 0.1.0

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.

Since:

  • 0.1.0



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

#bountyObject (readonly)

Since:

  • 0.1.0



63
64
65
# File 'lib/ssc.bot/chat_log/messages.rb', line 63

def bounty
  @bounty
end

#killedObject (readonly)

Since:

  • 0.1.0



64
65
66
# File 'lib/ssc.bot/chat_log/messages.rb', line 64

def killed
  @killed
end

#killerObject (readonly)

Since:

  • 0.1.0



65
66
67
# File 'lib/ssc.bot/chat_log/messages.rb', line 65

def killer
  @killer
end