new StorageData()
Provides storage specific functionality that extends the StorageManager
Extends
- StorageManager
Methods
(static) self.agencies()
Extracts unique agencies
Returns:
An array of agencies
(static) self.assessors()
Extracts unique independent assessors
Returns:
An array of independent assessors
(static) self.products()
Extracts unique products
Returns:
An array of products
(static) self.providers()
Extracts unique providers
Returns:
An array of providers
(static) self.transform(raw)
Transforms the raw object to a specifec model
Parameters:
Name | Type | Description |
---|---|---|
raw |
Object | The JSON object |
Returns:
The item
(inner) cleanAssessors()
Removes empty objects `{}` from raw assessor data list
Returns:
Array of assessors without empty objects
(inner) fillFromRawAssessor()
Finds the assessor using a name from the list of raw assessors.
Returns:
Assessor being populated.