Class: Botfly::MUCTimeMatcher

Inherits:
Matcher
  • Object
show all
Defined in:
lib/botfly/matcher/muc_time_matcher.rb

Instance Method Summary collapse

Methods inherited from Matcher

#initialize

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/muc_time_matcher.rb', line 6

def match(params)
  time = params[:time]
  Botfly.logger.debug "MCH: Matching #{@condition.inspect} against #{time}"
  Botfly.logger.debug "RESULT: #{(time =~ @condition).inspect}"
  return time =~ @condition
end