Class: Sunspot::DataExtractor::Constant
- Inherits:
-
Object
- Object
- Sunspot::DataExtractor::Constant
- Defined in:
- lib/sunspot/data_extractor.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Constant
constructor
A new instance of Constant.
- #value_for(object) ⇒ Object
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 |