Class: Sunspot::DataExtractor::Constant

Inherits:
Object
  • Object
show all
Defined in:
lib/sunspot/data_extractor.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Constant

Returns a new instance of Constant.



38
39
40
# File 'lib/sunspot/data_extractor.rb', line 38

def initialize(value)
  @value = value
end

Instance Method Details

#value_for(object) ⇒ Object



42
43
44
# File 'lib/sunspot/data_extractor.rb', line 42

def value_for(object)
  @value
end