Class: Querly::Pattern::Argument::KeyValue

Inherits:
Base
  • Object
show all
Defined in:
lib/querly/pattern/argument.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#tail

Instance Method Summary collapse

Methods inherited from Base

#==, #attributes

Constructor Details

#initialize(key:, value:, tail:, negated: false) ⇒ KeyValue

Returns a new instance of KeyValue.



42
43
44
45
46
47
48
# File 'lib/querly/pattern/argument.rb', line 42

def initialize(key:, value:, tail:, negated: false)
  @key = key
  @value = value
  @negated = negated

  super(tail: tail)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



38
39
40
# File 'lib/querly/pattern/argument.rb', line 38

def key
  @key
end

#negatedObject (readonly)

Returns the value of attribute negated.



40
41
42
# File 'lib/querly/pattern/argument.rb', line 40

def negated
  @negated
end

#valueObject (readonly)

Returns the value of attribute value.



39
40
41
# File 'lib/querly/pattern/argument.rb', line 39

def value
  @value
end