API Docs for: 0.50.0
Show:

TinCan.Attachment Class

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

Constructor

TinCan.Attachment

()

Methods

asVersion

(
  • [version]
)

Parameters:

  • [version] String optional

    Version to return (defaults to newest supported)

fromJSON

() Object static

Returns:

Object:

Attachment

getContentAsString

() String

Returns:

String:

Value of content property as a string

getLangDictionaryValue

()

init

(
  • [options]
)

Parameters:

  • [options] Object optional

    Configuration used to initialize

log

()

setContent

(
  • content
)

Parameters:

  • content ArrayBuffer

    Sets content from ArrayBuffer

setContentFromString

(
  • content
)

Parameters:

  • content String

    Sets the content property of the attachment from a string

Properties

content

ArrayBuffer

contentType

String

description

Object

display

Object

fileUrl

String

length

Int

LOG_SRC

Unknown

sha2

String

usageType

String