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