Class: Botfly::BodyMatcher
- Defined in:
- lib/botfly/matcher/body_matcher.rb
Instance Method Summary collapse
Methods inherited from Matcher
Constructor Details
This class inherits a constructor from Botfly::Matcher
Instance Method Details
#match(params) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/botfly/matcher/body_matcher.rb', line 6 def match(params) msg = params[:message] Botfly.logger.debug "MCH: Matching #{@condition.inspect} against #{msg.body.inspect}" Botfly.logger.debug "RESULT: #{(msg.body =~ @condition).inspect}" return msg.body =~ @condition end |