Module: Delighted

Defined in:
lib/delighted.rb,
lib/delighted/json.rb,
lib/delighted/utils.rb,
lib/delighted/client.rb,
lib/delighted/errors.rb,
lib/delighted/version.rb,
lib/delighted/resource.rb,
lib/delighted/http_adapter.rb,
lib/delighted/http_response.rb,
lib/delighted/operations/all.rb,
lib/delighted/resources/person.rb,
lib/delighted/operations/update.rb,
lib/delighted/operations/create.rb,
lib/delighted/resources/metrics.rb,
lib/delighted/operations/retrieve.rb,
lib/delighted/resources/unsubscribe.rb,
lib/delighted/resources/survey_request.rb,
lib/delighted/resources/survey_response.rb,
lib/delighted/enumerable_resource_collection.rb

Defined Under Namespace

Modules: Operations, Utils Classes: AuthenticationError, Client, EnumerableResourceCollection, Error, GeneralAPIError, HTTPAdapter, HTTPResponse, JSON, Metrics, Person, Resource, ResourceValidationError, ServiceUnavailableError, SurveyRequest, SurveyResponse, Unsubscribe, UnsupportedFormatRequestedError

Constant Summary collapse

VERSION =
"1.4.0.rc2"

Class Attribute Summary collapse

Class Attribute Details

.api_base_urlObject

Returns the value of attribute api_base_url


34
35
36
# File 'lib/delighted.rb', line 34

def api_base_url
  @api_base_url
end

.api_keyObject

Returns the value of attribute api_key


34
35
36
# File 'lib/delighted.rb', line 34

def api_key
  @api_key
end

.http_adapterObject

Returns the value of attribute http_adapter


34
35
36
# File 'lib/delighted.rb', line 34

def http_adapter
  @http_adapter
end

.shared_clientObject


37
38
39
40
41
# File 'lib/delighted.rb', line 37

def shared_client
  @mutex.synchronize do
    @shared_client ||= Client.new(:api_key => api_key, :api_base_url => api_base_url, :http_adapter => http_adapter)
  end
end