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

Constructor Details

- (void) constructor(models)

Initializes a new instance of the @see ScottyMethods class.

Parameters:

  • models (Object) A collection of models that can be used.

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.