class Castle::Commands::GetDevice
Generates the payload for the GET devices/#{device_token} request
Public Class Methods
build(options = {})
click to toggle source
@param options [Hash] @return [Castle::Command]
# File lib/castle/commands/get_device.rb, line 10 def build(options = {}) Castle::Validators::Present.call(options, %i[device_token]) Castle::Command.new("devices/#{options[:device_token]}", nil, :get) end