code: function (details) {
    var self = this;
  
    if (!details || typeof details !== 'object') {
      throw new Error('details are a required argument');
    }
  
    self.endpoints = details.endpoints;
    self.name = details.name;
    self.type = details.type;
  }
docs: Service class
  
  @description The service class is a thin wrapper on an entry in the openstack
  service catalog
  
  @param {object}  details     the data for the new service
  @param {object}  details.endpoints       the array of endpoints
  @param {String}  details.name            the name of the service
  @param {String}  details.type            the type of the new service
  @constructor