Class: module:models/Option

module:models/Option(id)

new module:models/Option(id)

Constructs a new Option. Document representing a product option.

Parameters:
Name Type Description
id String

The id of the option.

Source:

Members

(inner) description :String

The localized description of the option.

Type:
  • String
Source:

(inner) id :String

The id of the option.

Type:
  • String
Source:

(inner) image :String

The URL to the option image.

Type:
  • String
Source:

(inner) name :String

The localized name of the option.

Type:
  • String
Source:

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

The array of option values. This array can be empty.

Type:
Source:

Methods

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

Constructs a Option 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/Option

Optional instance to populate.

Source:
Returns:

The populated Option instance.

Type
module:models/Option