| Class | ReactiveResource::Association::HasOneAssociation |
| In: |
lib/reactive_resource/association/has_one_association.rb
|
| Parent: | Object |
Represents and resolves a has_one association
| attribute | [R] | The attribute name this association represents |
| klass | [R] | The class this association is attached to |
| options | [R] | additional options passed in when the association was created |
Adds methods for has_one associations, to make dealing with these objects a bit more straightforward. If the attribute name is headshot, it will add:
Returns the class name of the target of the association. Based off of attribute unless class_name was passed in the options hash.