Module: ContextIO::API::ResourceCollection::DeclarativeClassSyntax

Defined in:
lib/contextio/api/resource_collection.rb

Overview

This module contains helper methods for ‘API::ResourceCollection`s’ class definitions. It gets ‘extend`ed into a class when `API::ResourceCollection` is `include`d.

Instance Attribute Summary collapse

Instance Attribute Details

#association_nameObject



149
150
151
# File 'lib/contextio/api/resource_collection.rb', line 149

def association_name
  @association_name
end

#associationsObject (readonly)



143
144
145
# File 'lib/contextio/api/resource_collection.rb', line 143

def associations
  @associations ||= []
end