Class: Ripple::Associations::OneLinkedProxy

Inherits:
Proxy show all
Includes:
Linked, One
Defined in:
lib/ripple/associations/one_linked_proxy.rb

Instance Attribute Summary

Attributes inherited from Proxy

#owner, #reflection, #target

Instance Method Summary collapse

Methods included from Linked

#include?, #keys, #replace, #replace_links, #reset

Methods included from One

#to_a

Methods included from Instantiators

#build, #create, #create!

Methods inherited from Proxy

#===, #blank?, #has_changed_documents?, #initialize, #inspect, #loaded, #loaded?, #loaded_documents, #nil?, #present?, #proxy_respond_to?, #reload, #replace, #reset, #respond_to?, #send

Constructor Details

This class inherits a constructor from Ripple::Associations::Proxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ripple::Associations::Proxy

Instance Method Details

#keyObject



11
12
13
# File 'lib/ripple/associations/one_linked_proxy.rb', line 11

def key
  keys.first
end