Class: ThinkingSphinx::ActiveRecord::PropertyQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/active_record/property_query.rb

Instance Method Summary (collapse)

Constructor Details

- (PropertyQuery) initialize(property, source, type = nil)

Returns a new instance of PropertyQuery



2
3
4
# File 'lib/thinking_sphinx/active_record/property_query.rb', line 2

def initialize(property, source, type = nil)
  @property, @source, @type = property, source, type
end

Instance Method Details

- (Object) to_s



6
7
8
9
10
# File 'lib/thinking_sphinx/active_record/property_query.rb', line 6

def to_s
  identifier = [type, property.name].compact.join(' ')

  "#{identifier} from #{source_type}; #{queries.join('; ')}"
end