Class: module:models/VariationAttribute

module:models/VariationAttribute(id)

new module:models/VariationAttribute(id)

Constructs a new VariationAttribute. Document representing a variation attribute.

Parameters:
Name Type Description
id String

The id of the variation attribute.

Source:

Members

(inner) id :String

The id of the variation attribute.

Type:
  • String
Source:

(inner) name :String

The localized display name of the variation attribute.

Type:
  • String
Source:

(inner) values :Array.<module:models/VariationAttributeValue>

The sorted array of variation values. This array can be empty.

Type:
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/VariationAttribute}

Constructs a VariationAttribute from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/VariationAttribute

Optional instance to populate.

Source:
Returns:

The populated VariationAttribute instance.

Type
module:models/VariationAttribute