Class: AgnosticBackend::Queryable::Criteria::Fuzzy

Inherits:
Relational show all
Defined in:
lib/agnostic_backend/queryable/criteria/binary.rb

Instance Attribute Summary collapse

Attributes inherited from Binary

#attribute, #value

Attributes inherited from TreeNode

#children, #context

Instance Method Summary collapse

Methods inherited from TreeNode

#==, #accept

Methods included from Utilities

included

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

#fuzzinessObject (readonly)

Returns the value of attribute fuzziness.



50
51
52
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 50

def fuzziness
  @fuzziness
end