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/bounce.rb,
lib/delighted/resources/person.rb,
lib/delighted/operations/create.rb,
lib/delighted/operations/delete.rb,
lib/delighted/operations/update.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, Bounce, Client, EnumerableResourceCollection, Error, GeneralAPIError, HTTPAdapter, HTTPResponse, JSON, Metrics, Person, RateLimitedError, Resource, ResourceValidationError, ServiceUnavailableError, SurveyRequest, SurveyResponse, Unsubscribe, UnsupportedFormatRequestedError

Constant Summary collapse

VERSION =
"1.8.0"

Class Attribute Summary collapse

Class Attribute Details

.api_base_urlObject

Returns the value of attribute api_base_url.



36
37
38
# File 'lib/delighted.rb', line 36

def api_base_url
  @api_base_url
end

.api_keyObject

Returns the value of attribute api_key.



36
37
38
# File 'lib/delighted.rb', line 36

def api_key
  @api_key
end

.http_adapterObject

Returns the value of attribute http_adapter.



36
37
38
# File 'lib/delighted.rb', line 36

def http_adapter
  @http_adapter
end

.shared_clientObject



39
40
41
42
43
# File 'lib/delighted.rb', line 39

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