Class: OrganizationMethods
| Defined in: | src/methods/organization-methods.coffee |
Overview
Provides methods to interact with scotties.
Constant Summary
- UPDATE_EXCLUDEFIELDS =
-
['_id', 'createdByUserId', 'createdAt']
Instance Method Summary
- - (void) constructor(models) Constructor Initializes a new instance of the @see ScottyMethods class.
- - (void) all(accountId, options = {}, cb = function() {}) Bound
- - (void) get(organizationId, options = {}, cb = function() {}) Bound Looks up a user by id.
- - (void) destroy(organizationId, options = {}, cb = function() {}) Bound Completely destroys an organization.
- - (void) getByName(accountId, name, options = {}, cb = function() {}) Bound
- - (void) getByNameOrId(accountId, nameOrId, options = {}, cb = function() {}) Bound
- - (void) patch(organizationId, obj = {}, options = {}, cb = function() {}) Bound Patch an organization
- - (void) create(accountId, objs = {}, options = {}, cb = function() {}) Bound Creates a new organization.
Constructor Details
- (void) constructor(models)
Initializes a new instance of the @see ScottyMethods class.
Instance Method Details
- (void) all(accountId, options = {}, cb = function() {}) (bound)
- (void) get(organizationId, options = {}, cb = function() {}) (bound)
Looks up a user by id.
- (void) destroy(organizationId, options = {}, cb = function() {}) (bound)
Completely destroys an organization.
- (void) getByName(accountId, name, options = {}, cb = function() {}) (bound)
- (void) getByNameOrId(accountId, nameOrId, options = {}, cb = function() {}) (bound)
- (void) patch(organizationId, obj = {}, options = {}, cb = function() {}) (bound)
Patch an organization
- (void) create(accountId, objs = {}, options = {}, cb = function() {}) (bound)
Creates a new organization.