Class: ActsAsTaggableOnMongoid::Taggable::TaggedWithQuery::Base
- Inherits:
-
Object
- Object
- ActsAsTaggableOnMongoid::Taggable::TaggedWithQuery::Base
- Defined in:
- lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/base.rb
Overview
A base class with shared code for match queries.
Direct Known Subclasses
AllTagsQuery, AnyTagsQuery, ExcludeTagsQuery, MatchAllTagsQuery
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#tag_definition ⇒ Object
readonly
Returns the value of attribute tag_definition.
-
#tag_list ⇒ Object
readonly
Returns the value of attribute tag_list.
-
#taggable_model ⇒ Object
readonly
Returns the value of attribute taggable_model.
Instance Method Summary collapse
-
#initialize(tag_definition, tag_list, options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(tag_definition, tag_list, options) ⇒ Base
Returns a new instance of Base.
13 14 15 16 17 |
# File 'lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/base.rb', line 13 def initialize(tag_definition, tag_list, ) @tag_definition = tag_definition @tag_list = tag_list @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/base.rb', line 8 def @options end |
#tag_definition ⇒ Object (readonly)
Returns the value of attribute tag_definition.
8 9 10 |
# File 'lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/base.rb', line 8 def tag_definition @tag_definition end |
#tag_list ⇒ Object (readonly)
Returns the value of attribute tag_list.
8 9 10 |
# File 'lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/base.rb', line 8 def tag_list @tag_list end |
#taggable_model ⇒ Object (readonly)
Returns the value of attribute taggable_model.
8 9 10 |
# File 'lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/base.rb', line 8 def taggable_model @taggable_model end |