Module: Lupa::ScopeMethods

Defined in:
lib/lupa/scope_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#scopeObject

Returns the value of attribute scope.



4
5
6
# File 'lib/lupa/scope_methods.rb', line 4

def scope
  @scope
end

#search_attributesObject (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