Sha256: 1fab0181b004b2d37908cdb35819cf43b3b9339a4f3153d60a0ebeed651483c7
Contents?: true
Size: 773 Bytes
Versions: 3
Compression:
Stored size: 773 Bytes
Contents
module Restfulie module Common module Representation # Unknown representation's unmarshalling on the client side class Generic def self.media_type_name raise 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems