Class: JsonApiFilter::FieldFilters::Base
- Inherits:
-
Object
- Object
- JsonApiFilter::FieldFilters::Base
- Defined in:
- lib/json_api_filter/field_filters/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#association ⇒ Object
readonly
Returns the value of attribute association.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(scope, values, association: false) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(scope, values, association: false) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 |
# File 'lib/json_api_filter/field_filters/base.rb', line 10 def initialize(scope, values, association: false ) @scope = scope @values = values @association = association end |
Instance Attribute Details
#association ⇒ Object (readonly)
Returns the value of attribute association.
5 6 7 |
# File 'lib/json_api_filter/field_filters/base.rb', line 5 def association @association end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
5 6 7 |
# File 'lib/json_api_filter/field_filters/base.rb', line 5 def scope @scope end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
5 6 7 |
# File 'lib/json_api_filter/field_filters/base.rb', line 5 def values @values end |