Class: AgnosticBackend::Queryable::Criteria::Fuzzy
- Inherits:
-
Relational
- Object
- TreeNode
- Criterion
- Binary
- Relational
- AgnosticBackend::Queryable::Criteria::Fuzzy
- Defined in:
- lib/agnostic_backend/queryable/criteria/binary.rb
Instance Attribute Summary collapse
-
#fuzziness ⇒ Object
readonly
Returns the value of attribute fuzziness.
Attributes inherited from Binary
Attributes inherited from TreeNode
Instance Method Summary collapse
-
#initialize(attribute:, value:, context: nil, fuzziness: 1) ⇒ Fuzzy
constructor
A new instance of Fuzzy.
Methods inherited from TreeNode
Methods included from Utilities
Constructor Details
#initialize(attribute:, value:, context: nil, fuzziness: 1) ⇒ Fuzzy
Returns a new instance of Fuzzy.
52 53 54 55 |
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 52 def initialize(attribute:, value:, context: nil, fuzziness: 1) @fuzziness = fuzziness super(attribute: attribute, value: value, context: context) end |
Instance Attribute Details
#fuzziness ⇒ Object (readonly)
Returns the value of attribute fuzziness.
50 51 52 |
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 50 def fuzziness @fuzziness end |