Class: JMESPath::Nodes::MultiSelectHash::KeyValuePair Private
- Inherits:
-
Object
- Object
- JMESPath::Nodes::MultiSelectHash::KeyValuePair
- 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
- #key ⇒ Object readonly private
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(key, value) ⇒ KeyValuePair
constructor
private
A new instance of KeyValuePair.
- #optimize ⇒ Object private
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.
27 28 29 30 |
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 27 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (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.
25 26 27 |
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 25 def key @key end |
#value ⇒ Object (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.
25 26 27 |
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 25 def value @value end |
Instance Method Details
#optimize ⇒ Object
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.
32 33 34 |
# File 'lib/jmespath/nodes/multi_select_hash.rb', line 32 def optimize self.class.new(@key, @value.optimize) end |