Method: Synvert::Core::NodeQuery::Compiler::Attribute#initialize

Defined in:
lib/synvert/core/node_query/compiler/attribute.rb

#initialize(key:, value:, operator: :==) ⇒ Attribute

Initialize a Attribute.

Parameters:

  • key (String)

    the key

  • value

    the value can be any class implement Comparable

  • operator (Symbol) (defaults to: :==)

    the operator



10
11
12
13
14
# File 'lib/synvert/core/node_query/compiler/attribute.rb', line 10

def initialize(key:, value:, operator: :==)
  @key = key
  @value = value
  @operator = operator
end