Module: DataMapper::Cutie::Tracker::Hook::Abstract::ClassMethods
- Defined in:
- lib/dm-cutie/tracker/hook/abstract.rb
Instance Method Summary collapse
-
#hook_name ⇒ String
-
hook_name - The name of your hook.
-
-
#supported_adapters ⇒ Array[Symbol]
-
supported_adapters - List of adapters that will use this hook.
-
-
#supported_statements ⇒ Array[Symbol]
-
supported_statements - Statements supported by this tracker hook.
-
-
#track(executed_query) ⇒ Object
-
track - Factory method that is called to start your hook.
-
Instance Method Details
#hook_name ⇒ String
-
hook_name - The name of your hook
47 48 49 |
# File 'lib/dm-cutie/tracker/hook/abstract.rb', line 47 def hook_name raise Exception, "#{self.class}.hook_name was not implemented" end |
#supported_adapters ⇒ Array[Symbol]
-
supported_adapters - List of adapters that will use this hook
29 30 31 |
# File 'lib/dm-cutie/tracker/hook/abstract.rb', line 29 def supported_adapters raise Exception, "#{self.class}.supported_adapters was not implemented" end |
#supported_statements ⇒ Array[Symbol]
-
supported_statements - Statements supported by this tracker hook
18 19 20 |
# File 'lib/dm-cutie/tracker/hook/abstract.rb', line 18 def supported_statements [:select, :insert, :update, :delete] end |
#track(executed_query) ⇒ Object
-
track - Factory method that is called to start your hook
return [NilClass]
39 40 41 |
# File 'lib/dm-cutie/tracker/hook/abstract.rb', line 39 def track( executed_query ) raise Exception, "#{self.class}.track was not implemented" end |