Sha256: 41eff4c5912c8779dc5141977944a9483b325963ec88d06f2c770eaf18d5fcfc
Contents?: true
Size: 688 Bytes
Versions: 1
Compression:
Stored size: 688 Bytes
Contents
module Shamu module JsonApi # Serialize an object to a JSON API stream. class Serializer # @param [Object] resource to be serialized. def initialize( resource ) @resource = resource end # Serialize the {#resource} to the builder. # @param [ResourceBuilder] builder to write to. # @return [void] def serialize( builder ) end private attr_reader :resource class << self # Find a {Serializer} that knows how to serialize the given resource. # @param [Object] resource to serialize. # @return [Serializer] def find( resource ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shamu-0.0.3 | lib/shamu/json_api/serializer.rb |