Class: ApplicationFilter
- Inherits:
-
Object
- Object
- ApplicationFilter
- Defined in:
- lib/generators/qry_filter/install/templates/application_filter.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(scope, filter_hash) ⇒ ApplicationFilter
constructor
A new instance of ApplicationFilter.
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
#scope ⇒ Object (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 |