Class: Castle::Commands::GetDevice
- Inherits:
-
Object
- Object
- Castle::Commands::GetDevice
- Defined in:
- lib/castle/commands/get_device.rb
Overview
Generates the payload for the GET devices/#device_token request
Class Method Summary collapse
Class Method Details
.build(options = {}) ⇒ Castle::Command
10 11 12 13 |
# File 'lib/castle/commands/get_device.rb', line 10 def build( = {}) Castle::Validators::Present.call(, %i[device_token]) Castle::Command.new("devices/#{[:device_token]}", nil, :get) end |