2020-08-14 15:16:35 -04:00
|
|
|
import GeneratedHostModel from '../generated/models/host';
|
2020-09-09 13:04:17 -04:00
|
|
|
import { fragment } from 'ember-data-model-fragments/attributes';
|
2020-08-14 15:16:35 -04:00
|
|
|
|
2020-09-09 13:04:17 -04:00
|
|
|
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;
|
2021-12-07 16:24:55 -08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @type {boolean}
|
|
|
|
|
*/
|
|
|
|
|
get isStatic() {
|
|
|
|
|
return this.type === 'static';
|
|
|
|
|
}
|
2020-09-09 13:04:17 -04:00
|
|
|
}
|