Class: SearchCop::QueryInfo
- Inherits:
-
Object
- Object
- SearchCop::QueryInfo
- Defined in:
- lib/search_cop/query_info.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#references ⇒ Object
Returns the value of attribute references.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(model, scope) ⇒ QueryInfo
constructor
A new instance of QueryInfo.
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
#model ⇒ Object
Returns the value of attribute model.
3 4 5 |
# File 'lib/search_cop/query_info.rb', line 3 def model @model end |
#references ⇒ Object
Returns the value of attribute references.
3 4 5 |
# File 'lib/search_cop/query_info.rb', line 3 def references @references end |
#scope ⇒ Object
Returns the value of attribute scope.
3 4 5 |
# File 'lib/search_cop/query_info.rb', line 3 def scope @scope end |