Class: ThinkingSphinx::ActiveRecord::PropertyQuery
- Inherits:
-
Object
- Object
- ThinkingSphinx::ActiveRecord::PropertyQuery
- Defined in:
- lib/thinking_sphinx/active_record/property_query.rb
Instance Method Summary collapse
-
#initialize(property, source, type = nil) ⇒ PropertyQuery
constructor
A new instance of PropertyQuery.
- #to_s ⇒ Object
Constructor Details
#initialize(property, source, type = nil) ⇒ PropertyQuery
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
#to_s ⇒ Object
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 |