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

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

Overview

This module contains helper methods for API::ResourceCollections' class definitions. It gets extended into a class when API::ResourceCollection is included.

Instance Attribute Summary collapse

Instance Attribute Details

#association_nameObject



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

def association_name
  @association_name
end

#associationsObject (readonly)



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

def associations
  @associations ||= []
end