Method: Benchmark::Memory::HeldResults::Serializer#load

Defined in:
lib/benchmark/memory/held_results/serializer.rb

#load(_hash) ⇒ Object

Convert a JSON document into an object.

Parameters:

  • _hash (Hash)

    A JSON document hash.

Returns:

  • (Object)

Raises:

  • (NotImplementedError)

    If the inheriting subclass didn’t implement.



35
36
37
38
39
40
# File 'lib/benchmark/memory/held_results/serializer.rb', line 35

def load(_hash)
  fail(
    NotImplementedError,
    "You must implement a concrete version in a subclass"
  )
end