all files / lib/attachments/ BaseAttachment.js

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                                   
class BaseAttachment {
  constructor(type, url) {
    this.type = type;
    this.url = url;
 
    return {
      attachment: {
        type: this.type,
        payload: {
          url: this.url,
        },
      },
    };
  }
}
 
export default BaseAttachment;