Class: ActiveFedora::Associations::Builder::SingularProperty
- Inherits:
-
Property
- Object
- Association
- Property
- ActiveFedora::Associations::Builder::SingularProperty
- Defined in:
- lib/active_fedora/associations/builder/singular_property.rb
Instance Attribute Summary
Attributes inherited from Association
#inversed, #owner, #reflection, #target
Instance Method Summary collapse
-
#initialize(model, name, options) ⇒ SingularProperty
constructor
A new instance of SingularProperty.
Methods inherited from Property
Methods inherited from Association
#association_scope, #initialize_attributes, #load_target, #loaded!, #loaded?, #reload, #reset, #scope, #set_inverse_instance, #stale_target?, #target_scope
Constructor Details
#initialize(model, name, options) ⇒ SingularProperty
Returns a new instance of SingularProperty.
5 6 7 8 |
# File 'lib/active_fedora/associations/builder/singular_property.rb', line 5 def initialize(model, name, ) super @name = :"#{name}_id" end |