Class: Hipbot::Match
- Inherits:
-
Struct
- Object
- Struct
- Hipbot::Match
- Includes:
- Cache
- Defined in:
- lib/hipbot/match.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#reaction ⇒ Object
Returns the value of attribute reaction.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Cache
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message
2 3 4 |
# File 'lib/hipbot/match.rb', line 2 def @message end |
#reaction ⇒ Object
Returns the value of attribute reaction
2 3 4 |
# File 'lib/hipbot/match.rb', line 2 def reaction @reaction end |
Class Method Details
.invoke_all(matches) ⇒ Object
55 56 57 |
# File 'lib/hipbot/match.rb', line 55 def invoke_all matches matches.each(&:invoke) end |
Instance Method Details
#invoke ⇒ Object
9 10 11 |
# File 'lib/hipbot/match.rb', line 9 def invoke Response.new(reaction, ).invoke(reaction_parameters) end |
#matches? ⇒ Boolean
5 6 7 |
# File 'lib/hipbot/match.rb', line 5 def matches? matches_scope? && matches_place? && matches_regexp? && matches_sender? && matches_condition? end |