Method: Castle::Commands::ReportDevice.build
- Defined in:
- lib/castle/commands/report_device.rb
.build(options = {}) ⇒ Castle::Command
10 11 12 13 |
# File 'lib/castle/commands/report_device.rb', line 10 def build( = {}) Castle::Validators::Present.call(, %i[device_token]) Castle::Command.new("devices/#{[:device_token]}/report", nil, :put) end |