Class: Pragma::Decorator::Association::Reflection Private
- Inherits:
-
Object
- Object
- Pragma::Decorator::Association::Reflection
- Defined in:
- lib/pragma/decorator/association/reflection.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Holds the information about an association.
Instance Attribute Summary collapse
- #options ⇒ Object readonly private
-
#property ⇒ Symbol
readonly
The property holding the associated object.
-
#type ⇒ Symbol
readonly
The type of the association.
Instance Method Summary collapse
-
#initialize(type, property, **options) ⇒ Reflection
constructor
private
Initializes the association.
Constructor Details
#initialize(type, property, **options) ⇒ Reflection
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the association.
31 32 33 34 35 36 37 38 |
# File 'lib/pragma/decorator/association/reflection.rb', line 31 def initialize(type, property, **) @type = type @property = property @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 |
# File 'lib/pragma/decorator/association/reflection.rb', line 18 attr_reader :type, :property, :options |
#property ⇒ Symbol (readonly)
Returns the property holding the associated object.
18 |
# File 'lib/pragma/decorator/association/reflection.rb', line 18 attr_reader :type, :property, :options |
#type ⇒ Symbol (readonly)
Returns the type of the association.
18 19 20 |
# File 'lib/pragma/decorator/association/reflection.rb', line 18 def type @type end |