Class: DataMapper::Associations::OneToOne::Relationship

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

### Methods

get instance_of? kind_of? new respond_to? set

### Attributes

relationship | [R] |

### Public Class methods

new(name, target_model, source_model, options = {})

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

@api semipublic

### Public Instance methods

get(source, other_query = nil)

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

@api semipublic

instance_of?(klass)

TODO: document @api public

kind_of?(klass)

TODO: document @api public

respond_to?(method, include_private = false)

TODO: document @api public

set(source, target)

Sets and returns association target for given source

@api semipublic

[Validate]