Class: module:models/Review

module:models/Review()

new module:models/Review()

Constructs a new Review.

Source:

Members

(inner) alias :String

Type:
  • String
Source:

(inner) comment :String

Type:
  • String
Source:

(inner) date :String

Type:
  • String
Source:

(inner) headline :String

Type:
  • String
Source:

(inner) id :String

Type:
  • String
Source:

(inner) principal :module:models/User

Type:
Source:

(inner) rating :Number

Type:
  • Number
Source:

Methods

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

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

Optional instance to populate.

Source:
Returns:

The populated Review instance.

Type
module:models/Review