Class: JMESPath::Nodes::MultiSelectHash::KeyValuePair Private

Inherits:
Object
  • Object
show all
Defined in:
lib/jmespath/nodes/multi_select_hash.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ KeyValuePair

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of KeyValuePair.



26
27
28
29
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 26

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

Instance Attribute Details

#keyObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 24

def key
  @key
end

#valueObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 24

def value
  @value
end

Instance Method Details

#optimizeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 31

def optimize
  self.class.new(@key, @value.optimize)
end