Module: addon/services/sl-behavior

Extends

  • ember/Service

Members

(inner, nullable) behaviors :Object

Behaviors

Type:
  • Object
Default Value:
  • null
Source:

Methods

(inner) isAble(activity, resource, possible) → {Boolean}

Determine whether the desired activity is able to be performed on the resource

Parameters:
Name Type Description
activity String
resource String
possible Boolean
Source:
Throws:

If no parameters provided, first parameter is not a string, second parameter is not a string, or third parameter is not a boolean or undefined

Type
ember.assert
Returns:
Type
Boolean

(inner) isUnable(activity, resource, possible) → {Boolean}

Determine whether the desired activity is unable to be performed on the resource

See module:addon/services/sl-behavior~isAble for description of functionality. This method returns the inverse of its result.

Parameters:
Name Type Description
activity String
resource String
possible Boolean
Source:
Returns:
Type
Boolean

(inner) setBehaviors(behaviors) → {undefined}

Set behaviors

Parameters:
Name Type Description
behaviors Object
Source:
Throws:

If argument is not an object

Type
ember.assert
Returns:
Type
undefined