Class: SearchCop::QueryInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/search_cop/query_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, scope) ⇒ QueryInfo

Returns a new instance of QueryInfo.



5
6
7
8
9
# File 'lib/search_cop/query_info.rb', line 5

def initialize(model, scope)
  self.model = model
  self.scope = scope
  self.references = []
end

Instance Attribute Details

#modelObject

Returns the value of attribute model.



3
4
5
# File 'lib/search_cop/query_info.rb', line 3

def model
  @model
end

#referencesObject

Returns the value of attribute references.



3
4
5
# File 'lib/search_cop/query_info.rb', line 3

def references
  @references
end

#scopeObject

Returns the value of attribute scope.



3
4
5
# File 'lib/search_cop/query_info.rb', line 3

def scope
  @scope
end