Class: ApplicationFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/qry_filter/install/templates/application_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope, filter_hash) ⇒ ApplicationFilter

Returns a new instance of ApplicationFilter.



6
7
8
9
# File 'lib/generators/qry_filter/install/templates/application_filter.rb', line 6

def initialize(scope, filter_hash)
  @scope = scope
  @filter_hash = filter_hash
end

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



4
5
6
# File 'lib/generators/qry_filter/install/templates/application_filter.rb', line 4

def scope
  @scope
end