Class: AgnosticBackend::Queryable::Criteria::Binary

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

Direct Known Subclasses

Relational

Instance Attribute Summary collapse

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) ⇒ Binary

Returns a new instance of Binary.



7
8
9
10
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 7

def initialize(attribute:, value:, context: nil)
  @attribute, @value = attribute, value
  super([attribute, value], context)
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



5
6
7
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 5

def attribute
  @attribute
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/agnostic_backend/queryable/criteria/binary.rb', line 5

def value
  @value
end