module Boffin::Trackable::ClassMethods
Included as class methods in the host class
Public Instance Methods
boffin()
click to toggle source
@return [Tracker] The Tracker
instance associated with the class
# File lib/boffin/trackable.rb, line 28 def boffin @boffin ||= ::Boffin::Tracker.new(self) end
top_ids(type_or_weights, opts = {})
click to toggle source
@param [Symbol, Hash] type_or_weights @param [Hash] opts @return [Array<String>, Array<Array>] @see Tracker#top
# File lib/boffin/trackable.rb, line 36 def top_ids(type_or_weights, opts = {}) boffin.top(type_or_weights, opts) end