Class: Botfly::Matcher

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

Instance Method Summary collapse

Constructor Details

#initialize(condition) ⇒ Matcher

Returns a new instance of Matcher.



3
4
5
6
# File 'lib/botfly/matcher/matcher.rb', line 3

def initialize(condition)
  Botfly.logger.info("MCH: Creating Matcher")
  @condition = condition
end

Instance Method Details

#match(params) ⇒ Object



7
8
9
# File 'lib/botfly/matcher/matcher.rb', line 7

def match(params)
  raise "AbstractMethodError: You must implement match in a concrete subclass"
end