class Rets::Metadata::MarshalSerializer
Serialize/Deserialize metadata using Marshal.
Public Instance Methods
load(file)
click to toggle source
Deserialize from a file. If the metadata cannot be deserialized, return nil.
# File lib/rets/metadata/marshal_serializer.rb, line 18 def load(file) Marshal.load(file) rescue TypeError nil end
save(file, o)
click to toggle source
Serialize to a file. The library reserves the right to change the type or contents of o, so don't depend on it being anything in particular.
# File lib/rets/metadata/marshal_serializer.rb, line 12 def save(file, o) Marshal.dump(o, file) end