Sha256: 0c91e33939fec0463d17711e8cd74763e804cb565d79838def98fb8886b5a47c

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

module Restfulie
  module Common
    module Representation
      # Unknown representation's unmarshalling on the client side
      class Generic
    
        # 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
    
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restfulie-1.0.0.beta1 lib/restfulie/common/representation/generic.rb
restfulie-0.1.0.beta1 lib/restfulie/common/representation/generic.rb