class Castle::Commands::Lists::Update
Builds the command to update a list
Public Class Methods
build(options = {})
click to toggle source
@param options [Hash] @return [Castle::Command]
# File lib/castle/commands/lists/update.rb, line 11 def build(options = {}) Castle::Validators::Present.call(options, %i[list_id]) list_id = options.delete(:list_id) Castle::Command.new("lists/#{list_id}", options, :put) end