Class: JSONAPI::Resource

Inherits:
ActiveRelationResource show all
Defined in:
lib/jsonapi/resource.rb

Direct Known Subclasses

YourModelResource

Instance Attribute Summary

Attributes inherited from BasicResource

#context

Method Summary

Methods inherited from ActiveRelationResource

apply_join, count, count_related, find, find_by_key, find_by_keys, find_fragments, find_included_fragments, find_related_fragments, find_to_populate_by_keys, join_relationship, records, records_base, records_for_populate, records_for_source_to_related, relationship_records

Methods inherited from BasicResource

_abstract, _add_relationship, _allowed_filter?, _as_parent_key, _attribute_delegated_name, _attribute_options, _cache_field, _caching, _clear_cached_attribute_options, _clear_fields_cache, _default_primary_key, _exclude_links, _has_attribute?, _has_sort?, _immutable, #_model, _model_class, _model_name, _polymorphic, _polymorphic_name, _polymorphic_resource_klasses, _polymorphic_types, _primary_key, _relationship, _resource_name_from_type, _singleton_options, _table_name, _updatable_attributes, _updatable_relationships, abstract, attribute, attribute_caching_context, attribute_to_model_field, attributes, belongs_to, cache_field, #cache_id, caching, caching?, call_method_or_proc, cast_to_attribute_type, #change, construct_order_options, creatable_fields, create, create_model, #create_to_many_links, #custom_links, default_attribute_options, default_sort, define_foreign_key_setter, define_on_resource, define_relationship_methods, exclude_link?, exclude_links, #fetchable_fields, fields, filter, filters, has_many, has_one, hash_cache_field, #id, #identity, immutable, inherited, #initialize, is_filter_relationship?, #is_new?, key_type, #meta, #model_error_messages, model_hint, model_name, module_path, mutable?, paginator, parse_exclude_links, polymorphic, primary_key, rebuild_relationships, register_relationship, relationship, #remove, #remove_to_many_link, #remove_to_one_link, #replace_fields, #replace_polymorphic_to_one_link, #replace_to_many_links, #replace_to_one_link, resource_for, resource_key_type, resource_klass_for, resource_klass_for_model, resource_type_for, resources_for, root?, root_resource, routing_options, routing_resource_options, singleton, singleton?, singleton_key, sort, sortable_field?, sortable_fields, sorts, updatable_fields, #validation_error_metadata, verify_custom_filter, verify_filter, verify_filters, verify_key, verify_keys, verify_relationship_filter

Methods included from Callbacks

included

Constructor Details

This class inherits a constructor from JSONAPI::BasicResource