Module: Safrano::NavigationInfo
- Included in:
- EntityBase, NilNavigationAttribute, OData::NavigatedCollection
- Defined in:
- lib/safrano/core.rb
Instance Attribute Summary collapse
-
#nav_name ⇒ Object
readonly
Returns the value of attribute nav_name.
-
#nav_parent ⇒ Object
readonly
Returns the value of attribute nav_parent.
-
#navattr_reflection ⇒ Object
readonly
Returns the value of attribute navattr_reflection.
Instance Method Summary collapse
Instance Attribute Details
#nav_name ⇒ Object (readonly)
Returns the value of attribute nav_name.
36 37 38 |
# File 'lib/safrano/core.rb', line 36 def nav_name @nav_name end |
#nav_parent ⇒ Object (readonly)
Returns the value of attribute nav_parent.
34 35 36 |
# File 'lib/safrano/core.rb', line 34 def nav_parent @nav_parent end |
#navattr_reflection ⇒ Object (readonly)
Returns the value of attribute navattr_reflection.
35 36 37 |
# File 'lib/safrano/core.rb', line 35 def navattr_reflection @navattr_reflection end |
Instance Method Details
#set_relation_info(parent, name) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/safrano/core.rb', line 38 def set_relation_info(parent, name) @nav_parent = parent @nav_name = name @navattr_reflection = parent.class.association_reflections[name.to_sym] @nav_klass = @navattr_reflection[:class_name].constantize end |