Class: Mutils::Lib::ResultHash

Inherits:
Object
  • Object
show all
Defined in:
lib/mutils/lib/result_hash.rb

Overview

ResultHash: Store result using this class.

Instance Method Summary collapse

Constructor Details

#initializeResultHash

Returns a new instance of ResultHash.



8
9
10
# File 'lib/mutils/lib/result_hash.rb', line 8

def initialize
  self._hash = {}
end

Instance Method Details

#[]=(key, value) ⇒ Object



12
13
14
# File 'lib/mutils/lib/result_hash.rb', line 12

def []=(key, value)
  _hash[key] = value
end

#hashObject



16
17
18
# File 'lib/mutils/lib/result_hash.rb', line 16

def hash
  _hash
end