class Castle::Commands::Lists::Create

Builds the command to create a list

Public Class Methods

build(options = {}) click to toggle source

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

# File lib/castle/commands/lists/create.rb, line 12
def build(options = {})
  Castle::Validators::Present.call(options, %i[name color primary_field])

  Castle::Command.new('lists', options, :post)
end