Class: PgTagsOn::TagsQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_tags_on/tags_query.rb

Overview

Helper class to construct queries. This class is registered in models’ predicate builders. See configuration in order to create an alias for it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, predicate, options = {}) ⇒ TagsQuery

Returns a new instance of TagsQuery.



20
21
22
23
24
# File 'lib/pg_tags_on/tags_query.rb', line 20

def initialize(value, predicate, options = {})
  @value = value
  @predicate = predicate
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



18
19
20
# File 'lib/pg_tags_on/tags_query.rb', line 18

def options
  @options
end

#predicateObject (readonly)

Returns the value of attribute predicate.



18
19
20
# File 'lib/pg_tags_on/tags_query.rb', line 18

def predicate
  @predicate
end

#valueObject (readonly)

Returns the value of attribute value.



18
19
20
# File 'lib/pg_tags_on/tags_query.rb', line 18

def value
  @value
end