class Castle::Commands::GetDevicesForUser

Generates the payload for the GET users/#{user_id}/devices request

Public Class Methods

build(options = {}) click to toggle source

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

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