Class: StorageData

Services.StorageData

new StorageData()

Provides storage specific functionality that extends the StorageManager
Source:

Extends

  • StorageManager

Methods

(static) self.agencies()

Extracts unique agencies
Source:
Returns:
An array of agencies

(static) self.assessors()

Extracts unique independent assessors
Source:
Returns:
An array of independent assessors

(static) self.products()

Extracts unique products
Source:
Returns:
An array of products

(static) self.providers()

Extracts unique providers
Source:
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
Source:
Returns:
The item

(inner) cleanAssessors()

Removes empty objects `{}` from raw assessor data list
Source:
Returns:
Array of assessors without empty objects

(inner) fillFromRawAssessor()

Finds the assessor using a name from the list of raw assessors.
Source:
Returns:
Assessor being populated.