Class: DuckRecord::Reflection::EmbedsOneReflection
- Inherits:
-
EmbedsAssociationReflection
- Object
- AbstractReflection
- MacroReflection
- EmbedsAssociationReflection
- DuckRecord::Reflection::EmbedsOneReflection
- Defined in:
- lib/duck_record/reflection.rb
Instance Attribute Summary
Attributes inherited from EmbedsAssociationReflection
Attributes inherited from MacroReflection
#duck_record, #name, #options, #plural_name, #scope
Instance Method Summary collapse
Methods inherited from EmbedsAssociationReflection
#add_as_source, #collection?, #compute_class, #constructable?, #initialize, #klass, #nested?, #source_reflection, #validate?
Methods inherited from MacroReflection
#==, #compute_class, #initialize, #klass
Methods inherited from AbstractReflection
#alias_candidate, #build_association, #check_validity!, #class_name
Constructor Details
This class inherits a constructor from DuckRecord::Reflection::EmbedsAssociationReflection
Instance Method Details
#association_class ⇒ Object
327 328 329 |
# File 'lib/duck_record/reflection.rb', line 327 def association_class Associations::EmbedsOneAssociation end |
#has_one? ⇒ Boolean
325 |
# File 'lib/duck_record/reflection.rb', line 325 def has_one?; true; end |
#macro ⇒ Object
323 |
# File 'lib/duck_record/reflection.rb', line 323 def macro; :embeds_one; end |