Class: Castle::Commands::Lists::Get
- Inherits:
-
Object
- Object
- Castle::Commands::Lists::Get
- Defined in:
- lib/castle/commands/lists/get.rb
Overview
Builds the command to get a list
Class Method Summary collapse
Class Method Details
.build(options = {}) ⇒ Castle::Command
11 12 13 14 15 |
# File 'lib/castle/commands/lists/get.rb', line 11 def build( = {}) Castle::Validators::Present.call(, %i[list_id]) Castle::Command.new("lists/#{[:list_id]}", nil, :get) end |