Method: Sneakers::ContentType.serialize

Defined in:
lib/sneakers/content_type.rb

.serialize(payload, content_type) ⇒ Object



18
19
20
21
# File 'lib/sneakers/content_type.rb', line 18

def self.serialize(payload, content_type)
  return payload unless content_type
  @_types[content_type].serializer.(payload)
end