Sha256: 48478d8a1a16388c68ab46a4d252caf2c196e70a5b9295c787bc56d814cc24e1
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
module Typhoeus module Requests # This module contains custom serializer. module Marshal # Return the important data needed to serialize this Request, except the # `on_complete` handler, since they cannot be marshalled. def marshal_dump (instance_variables - ['@on_complete', :@on_complete]).map do |name| [name, instance_variable_get(name)] end end # Load. def marshal_load(attributes) attributes.each { |name, value| instance_variable_set(name, value) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typhoeus-0.5.0.alpha | lib/typhoeus/requests/marshal.rb |
typhoeus-0.5.0.pre | lib/typhoeus/requests/marshal.rb |