new Collection(client, uri, Ctor)
Creates an instance of Collection.
Parameters:
Name | Type | Description |
---|---|---|
client |
ApiClient | A reference to the top-level api client |
uri |
String | E.g. /api/v1/resources |
Ctor |
Object | Class of each item in the collection |
Methods
-
each(iterator)
-
Parameters:
Name Type Description iterator
function Function to call with each resource instance