class RapidApi::SerializerAdapters::Abstract

Attributes

klass[RW]
root_key[RW]

Public Class Methods

new(klass, root_key) click to toggle source
# File lib/rapid_api/serializer_adapters/abstract.rb, line 7
def initialize(klass, root_key)
  @klass    = klass
  @root_key = root_key
end

Public Instance Methods

deserialize_attributes(params, root_key) click to toggle source
# File lib/rapid_api/serializer_adapters/abstract.rb, line 24
def deserialize_attributes(params, root_key)
  raise NotImplementedError
end
deserialize_id(params, root_key) click to toggle source
# File lib/rapid_api/serializer_adapters/abstract.rb, line 28
def deserialize_id(params, root_key)
  raise NotImplementedError
end
serialize(_member) click to toggle source
# File lib/rapid_api/serializer_adapters/abstract.rb, line 12
def serialize(_member)
  raise NotImplementedError
end
serialize_collection(_collection) click to toggle source
# File lib/rapid_api/serializer_adapters/abstract.rb, line 16
def serialize_collection(_collection)
  raise NotImplementedError
end
serialize_errors(errors) click to toggle source
# File lib/rapid_api/serializer_adapters/abstract.rb, line 20
def serialize_errors(errors)
  raise NotImplementedError
end