API Docs for: 0.50.0
Show:

TinCan.Statement Class

Defined in: src/Statement.js:26
Module: TinCan.Statement
Parent Module: TinCan

Constructor

TinCan.Statement

(
  • [cfg]
  • [initCfg]
)

Defined in src/Statement.js:26

Parameters:

Methods

asVersion

(
  • [version]
)

Parameters:

  • [version] String optional

    Version to return (defaults to newest supported)

fromJSON

() Object static

Returns:

Object:

Statement

hasAttachmentsWithContent

()

Checks if the Statement has at least one attachment with content

init

(
  • [properties]
  • [cfg]
)

Parameters:

  • [properties] Object optional

    Configuration used to set properties (see constructor)

  • [cfg] Object optional

    Configuration used to initialize (see constructor)

log

()

stamp

()

Sets 'id' and 'timestamp' properties if not already set

toString

() String

Returns:

String:

String representation of the statement

Properties

actor

TinCan.Agent | TinCan.Group | Null

Defined in src/Statement.js:72

attachments

Array of TinCan.Attachment

authority

TinCan.Agent | Null

context

Object

Defined in src/Statement.js:96

degraded

Boolean

Default: false

id

String

Defined in src/Statement.js:66

inProgress

Boolean deprecated

LOG_SRC

Unknown

originalJSON

String

result

Object

Defined in src/Statement.js:90

stored

String

timestamp

String

verb

TinCan.Verb | Null

Defined in src/Statement.js:78

version

String

voided

Boolean deprecated

Default: null