Class: Gutentag::TaggedWith
- Inherits:
-
Object
- Object
- Gutentag::TaggedWith
- Defined in:
- lib/gutentag/tagged_with.rb
Defined Under Namespace
Classes: IDQuery, NameQuery, Query
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(model, options) ⇒ TaggedWith
constructor
A new instance of TaggedWith.
Constructor Details
#initialize(model, options) ⇒ TaggedWith
Returns a new instance of TaggedWith.
8 9 10 11 |
# File 'lib/gutentag/tagged_with.rb', line 8 def initialize(model, ) @model = model @options = end |
Class Method Details
.call(model, options) ⇒ Object
4 5 6 |
# File 'lib/gutentag/tagged_with.rb', line 4 def self.call(model, ) new(model, ).call end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/gutentag/tagged_with.rb', line 13 def call query_class.new(model, values, match).call end |