Sha256: f40c3ebbdc7423018b796dc5f6f2a0814a69dccf7a9c684657347bd37cad6c14

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module Tokamak
  # Unknown representation's unmarshalling on the client side
  module Representation
  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokamak-1.0.0.beta2 lib/tokamak/representation/generic.rb