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:
- 
                    
                        contentArrayBufferSets content from ArrayBuffer 
setContentFromString
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        content
Parameters:
- 
                    
                        contentStringSets the content property of the attachment from a string 
