UNPKG

ayla

Version:

Ayla at your service.

23 lines (17 loc) 668 B
# ROOM MODEL # -------------------------------------------------------------------------- # Represents a room. class RoomModel extends ayla.baseModel # CONSTRUCTOR AND PARSING # ---------------------------------------------------------------------- # Construct a new room model. constructor: (@originalData) -> @temperature = ko.observable() @humidity = ko.observable() @pressure = ko.observable() @co2 = ko.observable() # Init model. @init @originalData # EXPORTS # -------------------------------------------------------------------------- window.ayla.roomModel = RoomModel