Files
threshold-ui/addons/api/addon/models/host.js
T

18 lines
481 B
JavaScript

import GeneratedHostModel from '../generated/models/host';
import { fragment } from 'ember-data-model-fragments/attributes';
export default class HostModel extends GeneratedHostModel {
/**
* Attributes of this resource, if any, represented as a JSON fragment.
* @type {FragmentHostAttributesModel}
*/
@fragment('fragment-host-attributes', { defaultValue: {} }) attributes;
/**
* @type {boolean}
*/
get isStatic() {
return this.type === 'static';
}
}