Class: Querly::Pattern::Argument::KeyValue
- Defined in:
- lib/querly/pattern/argument.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#negated ⇒ Object
readonly
Returns the value of attribute negated.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(key:, value:, tail:, negated: false) ⇒ KeyValue
constructor
A new instance of KeyValue.
Methods inherited from Base
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
38 39 40 |
# File 'lib/querly/pattern/argument.rb', line 38 def key @key end |
#negated ⇒ Object (readonly)
Returns the value of attribute negated.
40 41 42 |
# File 'lib/querly/pattern/argument.rb', line 40 def negated @negated end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
39 40 41 |
# File 'lib/querly/pattern/argument.rb', line 39 def value @value end |