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/list_resource.rb,
lib/delighted/operations/all.rb,
lib/delighted/operations/list.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,
lib/delighted/resources/autopilot_membership.rb,
lib/delighted/resources/autopilot_configuration.rb

Defined Under Namespace

Modules: Operations, Utils Classes: AuthenticationError, AutopilotConfiguration, AutopilotMembership, Bounce, Client, EnumerableResourceCollection, Error, GeneralAPIError, HTTPAdapter, HTTPResponse, JSON, ListResource, Metrics, PaginationError, Person, RateLimitedError, Resource, ResourceValidationError, ServiceUnavailableError, SurveyRequest, SurveyResponse, Unsubscribe, UnsupportedFormatRequestedError

Constant Summary collapse

VERSION =
"2.1.0"

Class Attribute Summary collapse

Class Attribute Details

.api_base_urlObject

Returns the value of attribute api_base_url.



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

def api_base_url
  @api_base_url
end

.api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

.http_adapterObject

Returns the value of attribute http_adapter.



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

def http_adapter
  @http_adapter
end

.shared_clientObject



44
45
46
47
48
# File 'lib/delighted.rb', line 44

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