Class: SSCBot::ChatLog::QFindMessage
- Inherits:
-
Message
- Object
- Message
- SSCBot::ChatLog::QFindMessage
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, find_type:, arena: nil, days: nil, hours: nil, more: false, player: nil, private: false, zone: nil) ⇒ QFindMessage
Returns a new instance of QFindMessage.
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
#arena ⇒ Object
101
102
103
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 101
def arena
@arena
end
|
#days ⇒ Object
102
103
104
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 102
def days
@days
end
|
#find_type ⇒ Object
- :arena,:days,:hours,:zone
103
104
105
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 103
def find_type
@find_type
end
|
#hours ⇒ Object
104
105
106
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 104
def hours
@hours
end
|
#player ⇒ Object
106
107
108
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 106
def player
@player
end
|
#zone ⇒ Object
108
109
110
|
# File 'lib/ssc.bot/chat_log/messages.rb', line 108
def zone
@zone
end
|