class Castle::Commands::ReportDevice

Generates the payload for the PUT devices/#{device_token}/report request

Public Class Methods

build(options = {}) click to toggle source

@param options [Hash] @return [Castle::Command]

# File lib/castle/commands/report_device.rb, line 10
def build(options = {})
  Castle::Validators::Present.call(options, %i[device_token])
  Castle::Command.new("devices/#{options[:device_token]}/report", nil, :put)
end