get Attachment
Helper to simplify getting an indexed attachment.
Return
The Attachment at the requested index.
Parameters
index
the position of the item in the attachments.
Helper to simplify getting an indexed attachment.
Return
The Attachment with the matching id.
Parameters
id
the SecureHash of the desired attachment.
Throws
if no item matches the id.