yahoo/hodman

View on GitHub
lib/service/abstract/serviceObject.js

Summary

Maintainability
A
1 hr
Test Coverage
// Copyright 2014-2015, Yahoo! Inc.
// Copyrights licensed under the Mit License. See the accompanying LICENSE file for terms.

var ServiceBaseObject = require('./object');

/**
 * @class ServiceObject
 * @extends ServiceBaseObject
 */
var ServiceObject = ServiceBaseObject.extend(

    /**
     * @constructor
     * @param {object} options
     * @param {ServiceLookup} options.service
     */
    function (options) {
        this.__super(options);
    },

    {
        /**
         * Gets the service object
         *
         * @method getService
         * @return {ServiceLookup}
         */
        getService: function () {
            return this.getOptions().service;
        }
    },
    {
        /**
         * @property TYPE
         * @type {string}
         * @static
         */
        TYPE: 'ServiceObject'
    }
);

module.exports = ServiceObject;