Class: Postjob::Record

Inherits:
Hash
  • Object
show all
Defined in:
lib/postjob/record.rb

Overview

A job class in-memory representation.

Direct Known Subclasses

Host, Job, WorkerSession

Instance Method Summary collapse

Constructor Details

#initialize(hsh) ⇒ Record

:nodoc:



5
6
7
8
9
10
# File 'lib/postjob/record.rb', line 5

def initialize(hsh)
  replace hsh.dup
  each do |key, value|
    instance_variable_set "@#{key}", value
  end
end