Method: DTAS::Buffer.load

Defined in:
lib/dtas/buffer.rb

.load(hash) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/dtas/buffer.rb', line 31

def self.load(hash)
  buf = new
  if hash
    bs = hash["buffer_size"] and buf.buffer_size = bs
  end
  buf
end