def json
      hash = {
        :started     => @started,
        :finished    => @finished,
        :results     => @results,
        :type        => @type }
      
      # Merge in the world information if it's available
      hash[:world] = world if world
      hash[:hive_job_id] = hive_job_id if hive_job_id
      
      JSON.pretty_generate( hash )
    end
def json
      hash = {
        :started     => @started,
        :finished    => @finished,
        :results     => @results,
        :type        => @type }
      
      # Merge in the world information if it's available
      hash[:world] = world if world
      hash[:hive_job_id] = hive_job_id if hive_job_id
      
      JSON.pretty_generate( hash )
    end
Dump as json