Module: FlickrMocks::CustomMarshal::ClassMethods

Defined in:
lib/flickr_mocks/flickraw/custom_marshal.rb

Instance Method Summary collapse

Instance Method Details

#_load(string) ⇒ Object

used to un-marshal FlickRaw responses



14
15
16
17
18
# File 'lib/flickr_mocks/flickraw/custom_marshal.rb', line 14

def _load(string)
  data = Marshal.load(string)
  type = data.delete('flickr_type')
  FlickRaw::Response.build(data,type)
end