Class: Solr::Query::Request::Sorting::Function
- Inherits:
-
Object
- Object
- Solr::Query::Request::Sorting::Function
- Defined in:
- lib/solr/query/request/sorting/function.rb
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
Instance Method Summary collapse
-
#initialize(function:) ⇒ Function
constructor
A new instance of Function.
- #to_solr_s ⇒ Object
Constructor Details
#initialize(function:) ⇒ Function
Returns a new instance of Function.
8 9 10 11 |
# File 'lib/solr/query/request/sorting/function.rb', line 8 def initialize(function:) @function = function freeze end |
Instance Attribute Details
#function ⇒ Object (readonly)
Returns the value of attribute function.
6 7 8 |
# File 'lib/solr/query/request/sorting/function.rb', line 6 def function @function end |
Instance Method Details
#to_solr_s ⇒ Object
13 14 15 |
# File 'lib/solr/query/request/sorting/function.rb', line 13 def to_solr_s function end |