Class: Darthjee::CoreExt::Hash::Squasher::Builder
- Defined in:
- lib/darthjee/core_ext/hash/squasher.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Builder
constructor
A new instance of Builder.
- #to_h ⇒ Object
Constructor Details
#initialize(key, value) ⇒ Builder
Returns a new instance of Builder.
10 11 12 13 |
# File 'lib/darthjee/core_ext/hash/squasher.rb', line 10 def initialize(key, value) @value = value @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/darthjee/core_ext/hash/squasher.rb', line 8 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/darthjee/core_ext/hash/squasher.rb', line 8 def value @value end |