Method: Castle::API::GetDevicesForUser.call

Defined in:
lib/castle/api/get_devices_for_user.rb

.call(options = {}) ⇒ Object

return [Hash]

Parameters:

  • options (Hash) (defaults to: {})


10
11
12
13
14
15
16
# File 'lib/castle/api/get_devices_for_user.rb', line 10

def call(options = {})
  options = Castle::Utils::DeepSymbolizeKeys.call(options || {})
  http = options.delete(:http)
  config = options.delete(:config) || Castle.config

  Castle::API.call(Castle::Commands::GetDevicesForUser.build(options), {}, http, config)
end