Class: SSCBot::ChatLog::QFindMessage

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, find_type:, arena: nil, days: nil, hours: nil, more: false, player: nil, private: false, zone: nil) ⇒ QFindMessage

Returns a new instance of QFindMessage.

Since:

  • 0.1.0



110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/ssc.bot/chat_log/messages.rb', line 110

def initialize(line,find_type:,arena: nil,days: nil,hours: nil,more: false,player: nil,private: false,
               zone: nil)
  super(line,type: %s(?find))

  @arena = arena
  @days = days
  @find_type = find_type
  @hours = hours
  @more = more
  @player = player
  @private = private
  @zone = zone
end

Instance Attribute Details

#arenaObject (readonly)

Since:

  • 0.1.0



101
102
103
# File 'lib/ssc.bot/chat_log/messages.rb', line 101

def arena
  @arena
end

#daysObject (readonly)

Since:

  • 0.1.0



102
103
104
# File 'lib/ssc.bot/chat_log/messages.rb', line 102

def days
  @days
end

#find_typeObject (readonly)

:arena,:days,:hours,:zone

Since:

  • 0.1.0



103
104
105
# File 'lib/ssc.bot/chat_log/messages.rb', line 103

def find_type
  @find_type
end

#hoursObject (readonly)

Since:

  • 0.1.0



104
105
106
# File 'lib/ssc.bot/chat_log/messages.rb', line 104

def hours
  @hours
end

#playerObject (readonly)

Since:

  • 0.1.0



106
107
108
# File 'lib/ssc.bot/chat_log/messages.rb', line 106

def player
  @player
end

#zoneObject (readonly)

Since:

  • 0.1.0



108
109
110
# File 'lib/ssc.bot/chat_log/messages.rb', line 108

def zone
  @zone
end