Module: Lupa::ScopeMethods
- Defined in:
- lib/lupa/scope_methods.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#search_attributes ⇒ Object
readonly
Returns the value of attribute search_attributes.
Instance Method Summary collapse
Instance Attribute Details
#scope ⇒ Object
Returns the value of attribute scope.
4 5 6 |
# File 'lib/lupa/scope_methods.rb', line 4 def scope @scope end |
#search_attributes ⇒ Object (readonly)
Returns the value of attribute search_attributes.
5 6 7 |
# File 'lib/lupa/scope_methods.rb', line 5 def search_attributes @search_attributes end |
Instance Method Details
#initialize(scope, search_attributes) ⇒ Object
7 8 9 10 |
# File 'lib/lupa/scope_methods.rb', line 7 def initialize(scope, search_attributes) @scope = scope @search_attributes = search_attributes end |