Module: Boffin::Trackable::ClassMethods
- Defined in:
- lib/boffin/trackable.rb
Overview
Included as class methods in the host class
Instance Method Summary collapse
-
#boffin ⇒ Tracker
The Tracker instance associated with the class.
- #top_ids(type_or_weights, opts = {}) ⇒ Array<String>, Array<Array>
Instance Method Details
#boffin ⇒ Tracker
Returns The Tracker instance associated with the class.
28 29 30 |
# File 'lib/boffin/trackable.rb', line 28 def boffin @boffin ||= ::Boffin::Tracker.new(self) end |
#top_ids(type_or_weights, opts = {}) ⇒ Array<String>, Array<Array>
36 37 38 |
# File 'lib/boffin/trackable.rb', line 36 def top_ids(type_or_weights, opts = {}) boffin.top(type_or_weights, opts) end |