Class: ActiveModel::Serializer::Adapter::JsonApi
- Inherits:
-
ActiveModelSerializers::Adapter::JsonApi
- Object
- ActiveModelSerializers::Adapter::Base
- ActiveModelSerializers::Adapter::JsonApi
- ActiveModel::Serializer::Adapter::JsonApi
- Extended by:
- ActiveModelSerializers::Deprecate
- Defined in:
- lib/active_model/serializer/adapter/json_api.rb
Instance Attribute Summary
Attributes inherited from ActiveModelSerializers::Adapter::Base
#instance_options, #serializer
Instance Method Summary collapse
-
#initialize(serializer, options = {}) ⇒ JsonApi
constructor
A new instance of JsonApi.
Methods included from ActiveModelSerializers::Deprecate
delegate_and_deprecate, deprecate
Methods inherited from ActiveModelSerializers::Adapter::JsonApi
default_key_transform, #failure_document, fragment_cache, #fragment_cache, #serializable_hash, #success_document
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 = {}) ⇒ JsonApi
Returns a new instance of JsonApi.
7 8 9 |
# File 'lib/active_model/serializer/adapter/json_api.rb', line 7 def initialize(serializer, = {}) super(ActiveModelSerializers::Adapter::JsonApi.new(serializer, )) end |