module Octo::Utils

Public Class Methods

deserialize(data) click to toggle source

Deserialize a data. @param [String] data A string containing Marshal dump of the object

# File lib/octocore/utils.rb, line 18
def deserialize(data)
  Marshal::load(data)
end
serialize(record) click to toggle source

Serialize one record before adding it to the cache. Creates a ruby byte

stream

@param [Object] record Any object to be serialized

# File lib/octocore/utils.rb, line 12
def serialize(record)
  Marshal::dump(record).to_s
end