Class: Almicube::Selector::AllSelector

Inherits:
Base
  • Object
show all
Defined in:
lib/almicube/selector/all_selector.rb

Instance Attribute Summary

Attributes inherited from Base

#class_name

Attributes included from Cog

#ranking

Instance Method Summary collapse

Methods inherited from Base

#before_aggregate, #initialize, #interstore

Methods included from Cog

#active?, #after_aggregate, #before_aggregate

Constructor Details

This class inherits a constructor from Almicube::Selector::Base

Instance Method Details

#data_provider?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/almicube/selector/all_selector.rb', line 13

def data_provider?
  true
end

#labelObject



9
10
11
# File 'lib/almicube/selector/all_selector.rb', line 9

def label
  :data
end

#recordsObject



5
6
7
# File 'lib/almicube/selector/all_selector.rb', line 5

def records
  ranking.class_name.all
end