Class: Graphiti::Sideload::HasOne

Inherits:
HasMany show all
Defined in:
lib/graphiti/sideload/has_one.rb

Direct Known Subclasses

Adapters::ActiveRecord::HasOneSideload

Constant Summary

Constants inherited from Graphiti::Sideload

HOOK_ACTIONS, TYPES

Instance Attribute Summary

Attributes inherited from Graphiti::Sideload

#group_name, #link, #name, #parent, #parent_resource_class, #polymorphic_as

Instance Method Summary collapse

Methods inherited from HasMany

#base_filter, #initialize, #inverse_filter, #link_filter, #load_params

Methods inherited from Graphiti::Sideload

after_save, #always_include_resource_ids?, assign, #assign, assign_each, #assign_each, #associate, #associate_all, #association_name, #base_scope, #build_resource_proxy, #clear_resources, #create_remote_resource, #description, #disassociate, #errors, #fire_hooks!, #foreign_key, hooks, #ids_for_parents, #infer_foreign_key, #initialize, link, #link?, #link_extra_fields, #link_filter, #load, #load_params, params, #parent_resource, #performant_assign?, #polymorphic_child?, #polymorphic_has_many?, #polymorphic_has_one?, #polymorphic_parent?, pre_load, #primary_key, #readable?, #remote?, #resolve, #resource, #resource_class, #resource_class_loaded?, #scope, scope, #shared_remote?, #single?, #writable?

Constructor Details

This class inherits a constructor from Graphiti::Sideload::HasMany

Instance Method Details

#typeObject



2
3
4
# File 'lib/graphiti/sideload/has_one.rb', line 2

def type
  :has_one
end