From da1056d22222dd7702bccedf46665566903a4ca6 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Corvo Date: Wed, 26 Jan 2022 14:06:22 -0800 Subject: [PATCH] Refactor host model comments --- addons/api/addon/models/host.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/addons/api/addon/models/host.js b/addons/api/addon/models/host.js index 7bd65be52..14acc4d27 100644 --- a/addons/api/addon/models/host.js +++ b/addons/api/addon/models/host.js @@ -9,7 +9,7 @@ export default class HostModel extends GeneratedHostModel { @fragment('fragment-host-attributes', { defaultValue: {} }) attributes; /** - * Returns if the host is static type or not. + * True if the host is static. * @type {boolean} */ get isStatic() { @@ -17,7 +17,7 @@ export default class HostModel extends GeneratedHostModel { } /** - * Returns if the host is plugin or not. + * True if the host is plugin. * @type {boolean} */ get isPlugin() { @@ -25,7 +25,7 @@ export default class HostModel extends GeneratedHostModel { } /** - * Returns if host plugin is AWS or not. + * True if the host plugin type is AWS. * @type {boolean} */ get isAWS() { @@ -33,7 +33,7 @@ export default class HostModel extends GeneratedHostModel { } /** - * Returns if hist is Azure or not. + * True if the host plugin type is Azure. * @type {boolean} */ get isAzure() { @@ -41,8 +41,8 @@ export default class HostModel extends GeneratedHostModel { } /** - * If host is a plugin return its name, - * otherwise returns the host type + * If host is a plugin return `plugin.name`, + * otherwise return the host type. * @type {string} */ get compositeType() { @@ -50,7 +50,8 @@ export default class HostModel extends GeneratedHostModel { } /** - * Sets type, if type is different than static, sets plugin name to type + * Sets `type`. If type is different than `static`, sets `type` to `plugin` + * and `plugin.name` to the specified type. */ set compositeType(type) { if (type === 'static') {