Class: Attachment

TrelloEntities.Attachment(data)

The Attachmen class represents a card attachment in Trello.

You will mostly deal with lists in IterableCollections returned from Notification or Card methods.

Constructor

new Attachment(data)

Parameters:
Name Type Description
data

(Object} key/value pairs of information, must at least contain "id", can basically just pass in response from Trello API

Source:
Example
new Trellinator().attachedLink().name().url();

Methods

(static) this.card()

Return the Card that contains this Attachment

Source:
Example
new Notification(posted).attachedLink().card();

(static) this.id()

Return the id of this Attachment

Source:
Example
new Notification(posted).attachedLink().id();

Return the url of this Attachment

Source:
Example
card.cardsLinkedInAttachments().first().url();

(static) this.remove()

Remove this attachment from its containing card and return the containing card

Source:
Example
new Notification(notification).attachedLink().remove().postComment("You can't add links here!");

(static) this.text()

Return the name of this Attachment

Source:
Example
card.cardsLinkedInAttachments().first().name();