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