Class: Gutentag::TaggedWith

Inherits:
Object
  • Object
show all
Defined in:
lib/gutentag/tagged_with.rb

Defined Under Namespace

Classes: IDQuery, NameQuery, Query

Class Method Summary collapse

Instance Method Summary collapse

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, options)
  @model   = model
  @options = options
end

Class Method Details

.call(model, options) ⇒ Object



4
5
6
# File 'lib/gutentag/tagged_with.rb', line 4

def self.call(model, options)
  new(model, options).call
end

Instance Method Details

#callObject



13
14
15
# File 'lib/gutentag/tagged_with.rb', line 13

def call
  query_class.new(model, values, match).call
end