Class DataMapper::Associations::OneToOne::Relationship
In: lib/dm-core/associations/one_to_one.rb
Parent: Associations::Relationship

Methods

default_for   get   get!   instance_of?   kind_of?   new   respond_to?   set   set!  

Attributes

relationship  [R] 

Public Class methods

Initializes the relationship. Always assumes target model class is a camel cased association name.

@api semipublic

Public Instance methods

@api semipublic

Loads (if necessary) and returns association target for given source

@api semipublic

Get the resource directly

@api semipublic

@api public

Sets and returns association target for given source

@api semipublic

Sets the resource directly

@api semipublic

[Validate]