Class: PgTagsOn::TagsQuery
- Inherits:
-
Object
- Object
- PgTagsOn::TagsQuery
- 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
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#predicate ⇒ Object
readonly
Returns the value of attribute predicate.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, predicate, options = {}) ⇒ TagsQuery
constructor
A new instance of TagsQuery.
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, = {}) @value = value @predicate = predicate @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
18 19 20 |
# File 'lib/pg_tags_on/tags_query.rb', line 18 def @options end |
#predicate ⇒ Object (readonly)
Returns the value of attribute predicate.
18 19 20 |
# File 'lib/pg_tags_on/tags_query.rb', line 18 def predicate @predicate end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
18 19 20 |
# File 'lib/pg_tags_on/tags_query.rb', line 18 def value @value end |