Module: Boffin::Trackable
- Defined in:
- lib/boffin/trackable.rb
Overview
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
21 22 23 |
# File 'lib/boffin/trackable.rb', line 21 def self.included(mod) mod.extend(ClassMethods) end |
Instance Method Details
#hit(type, opts = {}) ⇒ Hit
43 44 45 |
# File 'lib/boffin/trackable.rb', line 43 def hit(type, opts = {}) self.class.boffin.hit(type, self, opts) end |
#hit_count(type, opts = {}) ⇒ Float
49 50 51 |
# File 'lib/boffin/trackable.rb', line 49 def hit_count(type, opts = {}) self.class.boffin.count(type, self, opts) end |