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