TinCan.Attachment Class
Constructor
TinCan.Attachment
()
Item Index
Methods
Properties
Methods
asVersion
(
-
[version]
Parameters:
-
[version]
String optionalVersion to return (defaults to newest supported)
fromJSON
()
Object
static
Returns:
Object:
Attachment
getContentAsString
()
String
Returns:
String:
Value of content property as a string
init
(
-
[options]
Parameters:
-
[options]
Object optionalConfiguration used to initialize
log
()
setContent
(
-
content
Parameters:
-
content
ArrayBufferSets content from ArrayBuffer
setContentFromString
(
-
content
Parameters:
-
content
StringSets the content property of the attachment from a string