Module: Castle::API

Defined in:
lib/castle/api.rb,
lib/castle/api/log.rb,
lib/castle/api/risk.rb,
lib/castle/api/track.rb,
lib/castle/api/filter.rb,
lib/castle/api/lists/get.rb,
lib/castle/api/get_device.rb,
lib/castle/api/lists/query.rb,
lib/castle/api/authenticate.rb,
lib/castle/api/lists/create.rb,
lib/castle/api/lists/delete.rb,
lib/castle/api/lists/update.rb,
lib/castle/api/lists/get_all.rb,
lib/castle/api/report_device.rb,
lib/castle/api/approve_device.rb,
lib/castle/api/list_items/get.rb,
lib/castle/api/list_items/count.rb,
lib/castle/api/list_items/query.rb,
lib/castle/api/end_impersonation.rb,
lib/castle/api/list_items/create.rb,
lib/castle/api/list_items/update.rb,
lib/castle/api/list_items/archive.rb,
lib/castle/api/start_impersonation.rb,
lib/castle/api/get_devices_for_user.rb,
lib/castle/api/list_items/unarchive.rb

Overview

this class is responsible for making requests to api

Defined Under Namespace

Modules: ApproveDevice, Authenticate, EndImpersonation, Filter, GetDevice, GetDevicesForUser, ListItems, Lists, Log, ReportDevice, Risk, StartImpersonation, Track

Class Method Summary collapse

Class Method Details

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

Parameters:

Returns:

  • (Hash)


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

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