API Docs for: 0.50.0
Show:

TinCan.Agent Class

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

Constructor

TinCan.Agent

()

Defined in src/Agent.js:26

Methods

asVersion

(
  • [version]
)

Defined in src/Agent.js:227

While a TinCan.Agent instance can store more than one inverse functional identifier this method will always only output one to be compliant with the statement sending specification. Order of preference is: mbox, mbox_sha1sum, openid, account

Parameters:

  • [version] String optional

    Version to return (defaults to newest supported)

fromJSON

() Object static

Defined in src/Agent.js:283

Returns:

Object:

Agent

init

(
  • [options]
)

Defined in src/Agent.js:90

Parameters:

  • [options] Object optional

    Configuration used to initialize

log

()

Defined in src/Agent.js:85

Properties

degraded

Boolean

Defined in src/Agent.js:63

Default: false

LOG_SRC

Unknown

Defined in src/Agent.js:80

mbox

String

Defined in src/Agent.js:39

mbox_sha1sum

String

Defined in src/Agent.js:45

name

String

Defined in src/Agent.js:33

objectType

String

Defined in src/Agent.js:73

Default: Agent

openid

String

Defined in src/Agent.js:51