'use strict';

var resource = require('./resource');
var Promise  = require('bluebird');

exports.Prospector = resource.create('Prospector', {api: 'prospector'})
  .extend({
    getEmail: function (){
      return this.getEmailResponse().then(function(resp){
        return resp.email;
      });
    },

    getVerified: function () {
      return this.getEmailResponse().then(function(resp){
        return resp.verified;
      });
    },

    getEmailResponse: function () {
      if (this.emailResponse)
        return this.emailResponse;

      return this.emailResponse = this.constructor.get(
        '/people/' + this.id + '/email'
      );
    }
  }, {
    search: function (options) {
      options = options || {};

      return this.get(
        '/people/search',
        options
      );
    }
  });

@@ -49,44 +49,8 @@
 e');
-%0Avar Promise  = require('bluebird');
 %0A%0Aex
@@ -502,31 +502,24 @@
 nse;%0A%0A      
-return 
 this.emailRe
@@ -589,32 +589,66 @@
 /email'%0A      );
+%0A%0A      return this.emailResponse;
 %0A    %7D%0A  %7D, %7B%0A  

fix linting