Sha256: 87caa6ed2dcf196338a55811d939557a810bbe46c6e47aa58cd68f0a3405c113
Contents?: true
Size: 553 Bytes
Versions: 3
Compression:
Stored size: 553 Bytes
Contents
module Medie module FormUrlEncoded class Driver def marshal(content, rel) if content.kind_of? Hash content.map { |key, value| "#{key}=#{value}" }.join("&") else content end end def unmarshal(content) def content.links [] end content end def can_handle?(content_type) !(content_type.nil? || content_type.split(";")[0]!="application/x-www-form-urlencoded") end Medie.registry << Driver.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
medie-1.0.0 | lib/medie/form_url_encoded/driver.rb |
medie-1.0.0.beta4 | lib/medie/form_url_encoded/driver.rb |
medie-1.0.0.beta3 | lib/medie/form_url_encoded/driver.rb |