Module: Boffin::Trackable::ClassMethods

Defined in:
lib/boffin/trackable.rb

Overview

Included as class methods in the host class

Instance Method Summary collapse

Instance Method Details

#boffinTracker

Returns The Tracker instance associated with the class.

Returns:

  • (Tracker)

    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>

Parameters:

  • type_or_weights (Symbol, Hash)
  • opts (Hash) (defaults to: {})

Returns:

  • (Array<String>, Array<Array>)

See Also:



36
37
38
# File 'lib/boffin/trackable.rb', line 36

def top_ids(type_or_weights, opts = {})
  boffin.top(type_or_weights, opts)
end