class SimpleCov::Result

def self.from_hash(hash)

Loads a SimpleCov::Result#to_hash dump
def self.from_hash(hash)
  command_name, data = hash.first
  result = SimpleCov::Result.new(data["coverage"])
  result.command_name = command_name
  result.created_at = Time.at(data["timestamp"])
  result
end