parameters: (self)
return_statement: return collections
docstring: Get a list of collections for this resource.
  
          :type: list(:py:class:`Collection`)
docstring_summary: Get a list of collections for this resource.
docstring_tokens: Get a list of collections for this resource .
function: def collections(self):
          """
          Get a list of collections for this resource.
  
          :type: list(:py:class:`Collection`)
          """
          collections = []
  
          for name, item in self._definition.get('hasMany', {}).items():
              name = self._get_name('collection', name)
              collections.append(Collection(name, item, self._resource_defs))
  
          return collections
function_tokens: def collections ( self ) : collections = [ ] for name , item in self . _definition . get ( 'hasMany' , { } ) . items ( ) : name = self . _get_name ( 'collection' , name ) collections . append ( Collection ( name , item , self . _resource_defs ) ) return collections