function Settings (options) {
            // Scope `this` to self
            var self = this;

            var mapping = {
                'Created_At': 'lastRefresh',
                'Produced_By' : 'producedBy'
            };

            /**
             * The last refresh date
             * @member {string}
             * @memberof Models.Settings
             */
            self.lastRefresh = null;

            /**
             * Initialize the Settings object.
             *
             * @param {object} options
             *  A dictionary of options to configure the Settings object.
             *
             * @returns
             *  The Settings object
             */
            self.init = function (options) {
                if (options) {
                    for (var x in options) {
                        if (!options.hasOwnProperty(x)) {
                            continue;
                        }
                        var key = mapping[x];
                        if(key){
                            self[key] = options[x];
                        }
                    }
                }
                return self;
            };

            /**
             * Refreshes the date to current date
             * @public
             * @memberof Models.Settings
             *
             * @returns
             *  The last refresh date
             */
            self.refresh = function () {
                self.lastRefresh = helperService.toDate(new Date().toString());
                return self.lastRefresh;
            };

            /**
             * Clears last refresh
             * @public
             * @memberof Models.Settings
             */
            self.clearRefresh = function () {
                self.lastRefresh = null;
            };

            /**
             * Determine if the data requires a refresh.
             * @public
             * @memberof Models.Settings
             *
             * @returns
             *  A boolean value
             */
            self.needsRefresh = function () {
                return self.lastRefresh !== helperService.toDate(new Date().toString());
            };

            /**
             * Hard-coded hash used since only a single instance will be stored
             * @public
             * @memberof Models.Settings
             *
             * @returns
             *  hash for settings
             */
            self.hash = function(){
                return "fedramp";
            };

            return self.init(options);
        }
/**
         * Application settings for the FedRAMP dashboard.
         * @constructor
         * @memberof Models
         */
Application settings for the FedRAMP dashboard.
@constructor
@memberof Models
Application settings for the FedRAMP dashboard . @constructor @memberof Models
function Settings (options) {
            var self = this;
            var mapping = {
                'Created_At': 'lastRefresh',
                'Produced_By' : 'producedBy'
            };
            self.lastRefresh = null;
            self.init = function (options) {
                if (options) {
                    for (var x in options) {
                        if (!options.hasOwnProperty(x)) {
                            continue;
                        }
                        var key = mapping[x];
                        if(key){
                            self[key] = options[x];
                        }
                    }
                }
                return self;
            };
            self.refresh = function () {
                self.lastRefresh = helperService.toDate(new Date().toString());
                return self.lastRefresh;
            };
            self.clearRefresh = function () {
                self.lastRefresh = null;
            };
            self.needsRefresh = function () {
                return self.lastRefresh !== helperService.toDate(new Date().toString());
            };
            self.hash = function(){
                return "fedramp";
            };
            return self.init(options);
        }
function Settings ( options ) { var self = this ; var mapping = { 'Created_At' : 'lastRefresh' , 'Produced_By' : 'producedBy' } ; self . lastRefresh = null ; self . init = function ( options ) { if ( options ) { for ( var x in options ) { if ( ! options . hasOwnProperty ( x ) ) { continue ; } var key = mapping [ x ] ; if ( key ) { self [ key ] = options [ x ] ; } } } return self ; } ; self . refresh = function ( ) { self . lastRefresh = helperService . toDate ( new Date ( ) . toString ( ) ) ; return self . lastRefresh ; } ; self . clearRefresh = function ( ) { self . lastRefresh = null ; } ; self . needsRefresh = function ( ) { return self . lastRefresh !== helperService . toDate ( new Date ( ) . toString ( ) ) ; } ; self . hash = function ( ) { return "fedramp" ; } ; return self . init ( options ) ; }
Application settings for the FedRAMP dashboard.
Application settings for the FedRAMP dashboard .
// Scope `this` to self /**
             * The last refresh date
             * @member {string}
             * @memberof Models.Settings
             */ /**
             * Initialize the Settings object.
             *
             * @param {object} options
             *  A dictionary of options to configure the Settings object.
             *
             * @returns
             *  The Settings object
             */ /**
             * Refreshes the date to current date
             * @public
             * @memberof Models.Settings
             *
             * @returns
             *  The last refresh date
             */ /**
             * Clears last refresh
             * @public
             * @memberof Models.Settings
             */ /**
             * Determine if the data requires a refresh.
             * @public
             * @memberof Models.Settings
             *
             * @returns
             *  A boolean value
             */ /**
             * Hard-coded hash used since only a single instance will be stored
             * @public
             * @memberof Models.Settings
             *
             * @returns
             *  hash for settings
             */