Class: Solr::Query::Request::Sorting::Function

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/query/request/sorting/function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#functionObject (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_sObject



13
14
15
# File 'lib/solr/query/request/sorting/function.rb', line 13

def to_solr_s
  function
end