RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

Class

FreshQualityPackrunSummaryModel

Extends
  • BaseModel

Summary

FreshQualityPackrunSummaryModel Constructor

.

Description

Model Class for a FreshQuality Packrun Summary

Constructor

protected

new FreshQualityPackrunSummaryModel(siteId)

FreshQualityPackrunSummaryModel Constructor

Parameters

  • siteId number

    The Site ID associated with this FreshQuality Packrun Summary

Source

Members

categorySummariesArray.<{name: string, percentage: number, defects: Array.<{name: string, fruitCount: number, percentage: number}>}>

An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)

Type

  • Array.<{name: string, percentage: number, defects: Array.<{name: string, fruitCount: number, percentage: number}>}>

Source

class1R600SamplesArray.<{fruitSize: string, packType: string, timestamp: Date, fruitCount: number, defects: Array.<{name: string, group: string, fruitCount: number}>}>

An Array of Class 1 R600 Samples

Type

  • Array.<{fruitSize: string, packType: string, timestamp: Date, fruitCount: number, defects: Array.<{name: string, group: string, fruitCount: number}>}>

Source

Methods

static

fromJSON(json, siteId) → {FreshQualityPackrunSummaryModel}

Create a new FreshQualityPackrunSummaryModel from a JSON Object or JSON String

Parameters

  • json Object.<string, any> | string

    A JSON Object or JSON String

  • siteId number

    The Site ID associated with this FreshQuality Packrun Summary

Returns

  • FreshQualityPackrunSummaryModel

Source