Class: PDC::Resource::Associations::Association
- Defined in:
- lib/pdc/resource/associations/association.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Attributes inherited from Relation
Instance Method Summary collapse
-
#initialize(klass, parent, name, options = {}) ⇒ Association
constructor
A new instance of Association.
Methods inherited from Relation
#all!, #count, #each, #find, #uri
Methods included from Pagination
Methods included from Finder
Methods included from Query
Methods included from Logging
Constructor Details
#initialize(klass, parent, name, options = {}) ⇒ Association
Returns a new instance of Association.
8 9 10 11 12 |
# File 'lib/pdc/resource/associations/association.rb', line 8 def initialize(klass, parent, name, = {}) super(klass, ) @parent = parent @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PDC::Resource::Relation
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/pdc/resource/associations/association.rb', line 6 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
6 7 8 |
# File 'lib/pdc/resource/associations/association.rb', line 6 def parent @parent end |