Class: Arke::Resource::Associations::Base
- Inherits:
-
Object
- Object
- Arke::Resource::Associations::Base
- Defined in:
- lib/arke/resource/associations/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(parent, name, options = {}) ⇒ Base
constructor
A new instance of Base.
- #target ⇒ Object
Constructor Details
#initialize(parent, name, options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/arke/resource/associations/base.rb', line 8 def initialize(parent, name, ={}) @parent = parent @name = name = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/arke/resource/associations/base.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/arke/resource/associations/base.rb', line 6 def end |
Instance Method Details
#target ⇒ Object
14 15 16 |
# File 'lib/arke/resource/associations/base.rb', line 14 def target klass.constantize end |