Class: Almicube::Selector::Base
- Inherits:
-
Object
- Object
- Almicube::Selector::Base
show all
- Includes:
- Cog
- Defined in:
- lib/almicube/selector/base.rb
Instance Attribute Summary collapse
Attributes included from Cog
#ranking
Instance Method Summary
collapse
Methods included from Cog
#active?, #after_aggregate
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
8
9
10
11
12
|
# File 'lib/almicube/selector/base.rb', line 8
def initialize(options={})
@class_name = options[:class_name]
@class_name = class_name.constantize if class_name.is_a? String
@label = options[:label]
end
|
Instance Attribute Details
#class_name ⇒ Object
Also known as:
model_class
Returns the value of attribute class_name.
6
7
8
|
# File 'lib/almicube/selector/base.rb', line 6
def class_name
@class_name
end
|
Instance Method Details
#before_aggregate ⇒ Object
24
25
|
# File 'lib/almicube/selector/base.rb', line 24
def before_aggregate
end
|
#data_provider? ⇒ Boolean
20
21
22
|
# File 'lib/almicube/selector/base.rb', line 20
def data_provider?
false
end
|
#interstore ⇒ Object
27
28
29
|
# File 'lib/almicube/selector/base.rb', line 27
def interstore
nil
end
|
#label ⇒ Object
16
17
18
|
# File 'lib/almicube/selector/base.rb', line 16
def label
@label
end
|