2013-04-09 18:33:29 +00:00
|
|
|
# collection
|
2013-04-10 17:55:13 +00:00
|
|
|
|
|
|
|
## About
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-10 17:55:13 +00:00
|
|
|
A `Collection` inherits from the [resource](../resource) class. It provides HTTP access to a supplied [model](../model) instance.
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-10 17:55:13 +00:00
|
|
|
## Config
|
|
|
|
|
|
|
|
Supports all configuration of a [resource](../resource).
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### name (optional)
|
|
|
|
|
|
|
|
If defined, overrides the default name (based on the path).
|
|
|
|
|
|
|
|
### Dependencies
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-10 17:55:13 +00:00
|
|
|
#### model
|
2013-04-09 18:33:29 +00:00
|
|
|
|
2013-04-10 17:55:13 +00:00
|
|
|
Requires a path to an existing model instance.
|