Sha256: 14c2672f17f54f04a9bbc46007a012838c6624670b477fc5eac871ee33f61077
Contents?: true
Size: 651 Bytes
Versions: 4
Compression:
Stored size: 651 Bytes
Contents
module Restfulie::Common::Representation # Unknown representation's unmarshalling on the client side class Generic def self.media_type_name raise Restfulie::Common::Error::RestfulieError.new("Generic representation does not have a specific media type") end cattr_reader :headers @@headers = { :get => { }, :post => { } } # Because there is no media type registered, return the content itself def unmarshal(content) def content.links [] end content end def marshal(string, rel) string end def prepare_link_for(link) link end end end
Version data entries
4 entries across 4 versions & 1 rubygems