instructure/lti_public_resources

View on GitHub
ember-app/app/libs/return_types/image-url.js

Summary

Maintainability
A
1 hr
Test Coverage
import ReturnType from 'appkit/libs/return-type';

export default ReturnType.extend({
  returnType : 'imageUrl',
  url        : null,
  title      : null,
  width      : null,
  height     : null,

  embedCode: function() {
    return this.get('url');
  }.property('url'),

  displayReturnType: 'Embed Image'

});