MCPcopy Create free account
hub / github.com/3rd-Eden/useragent / OperatingSystem

Function OperatingSystem

index.js:222–227  ·  view source on GitHub ↗

* The representation of a parsed Operating System. * * @constructor * @param {String} family The name of the os * @param {String} major Major version of the os * @param {String} minor Minor version of the os * @param {String} patch Patch version of the os * @api public

(family, major, minor, patch)

Source from the content-addressed store, hash-verified

220 * @api public
221 */
222function OperatingSystem(family, major, minor, patch) {
223 this.family = family || 'Other';
224 this.major = major || '0';
225 this.minor = minor || '0';
226 this.patch = patch || '0';
227}
228
229/**
230 * Generates a stringified version of the Operating System.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected