Class: Sunspot::Query::FunctionQuery

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

Overview

Abstract class for function queries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boost_amountObject (readonly)

Returns the value of attribute boost_amount.



7
8
9
# File 'lib/sunspot/query/function_query.rb', line 7

def boost_amount
  @boost_amount
end

Instance Method Details

#==(other) ⇒ Object



14
15
16
# File 'lib/sunspot/query/function_query.rb', line 14

def ==(other)
  @boost_amount == other.boost_amount
end

#^(y) ⇒ Object



9
10
11
12
# File 'lib/sunspot/query/function_query.rb', line 9

def ^(y)
  @boost_amount = y
  self
end