Module: FlickrMocks::CustomMarshal
- Included in:
- FlickRaw::Response, FlickRaw::ResponseList
- Defined in:
- lib/flickr_mocks/flickraw/custom_marshal.rb
Overview
contains custom methods that allow the marshaling of FlickRaw::Response and FlickRaw::ResponseList objects. FlickRaw responses contain singleton methods that can not be marshaled by default. This module is used internally
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#_dump(level) ⇒ Object
used to marshal FlickRaw responses.
Class Method Details
.included(base) ⇒ Object
8 9 10 |
# File 'lib/flickr_mocks/flickraw/custom_marshal.rb', line 8 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#_dump(level) ⇒ Object
used to marshal FlickRaw responses
22 23 24 25 26 |
# File 'lib/flickr_mocks/flickraw/custom_marshal.rb', line 22 def _dump(level) result = marshal_flickraw(self) result["flickr_type"] = self.flickr_type Marshal.dump result end |