Module: Castle::API::ApproveDevice
- Defined in:
- lib/castle/api/approve_device.rb
Overview
Sends PUT devices/#device_token/approve request
Class Method Summary collapse
-
.call(options = {}) ⇒ Object
return [Hash].
Class Method Details
.call(options = {}) ⇒ Object
return [Hash]
10 11 12 13 14 15 16 |
# File 'lib/castle/api/approve_device.rb', line 10 def call( = {}) = Castle::Utils::DeepSymbolizeKeys.call( || {}) http = .delete(:http) config = .delete(:config) || Castle.config Castle::API.call(Castle::Commands::ApproveDevice.build(), {}, http, config) end |