Module: Castle::API

Defined in:
lib/castle/api.rb,
lib/castle/api/track.rb,
lib/castle/api/review.rb,
lib/castle/api/identify.rb,
lib/castle/api/get_device.rb,
lib/castle/api/authenticate.rb,
lib/castle/api/report_device.rb,
lib/castle/api/approve_device.rb,
lib/castle/api/end_impersonation.rb,
lib/castle/api/start_impersonation.rb,
lib/castle/api/get_devices_for_user.rb

Overview

this class is responsible for making requests to api

Defined Under Namespace

Modules: ApproveDevice, Authenticate, EndImpersonation, GetDevice, GetDevicesForUser, Identify, ReportDevice, Review, StartImpersonation, Track

Class Method Summary collapse

Class Method Details

.call(command, headers = {}, http = nil, config = Castle.config) ⇒ Hash

Parameters:

Returns:

  • (Hash)


25
26
27
28
29
# File 'lib/castle/api.rb', line 25

def call(command, headers = {}, http = nil, config = Castle.config)
  Castle::Core::ProcessResponse.call(
    send_request(command, headers, http, config)
  )
end