Class: ActiveModel::Serializer::Adapter::Attributes

Inherits:
ActiveModelSerializers::Adapter::Attributes show all
Extended by:
ActiveModelSerializers::Deprecate
Defined in:
lib/active_model/serializer/adapter/attributes.rb

Instance Attribute Summary

Attributes inherited from ActiveModelSerializers::Adapter::Base

#instance_options, #serializer

Instance Method Summary collapse

Methods included from ActiveModelSerializers::Deprecate

delegate_and_deprecate, deprecate

Methods inherited from ActiveModelSerializers::Adapter::Attributes

#serializable_hash

Methods inherited from ActiveModelSerializers::Adapter::Base

#as_json, #cache_key, cache_key, default_key_transform, #fragment_cache, fragment_cache, inherited, #serializable_hash, transform, transform_key_casing!

Constructor Details

#initialize(serializer, options = {}) ⇒ Attributes

Returns a new instance of Attributes.



5
6
7
# File 'lib/active_model/serializer/adapter/attributes.rb', line 5

def initialize(serializer, options = {})
  super(ActiveModelSerializers::Adapter::Attributes.new(serializer, options))
end