Module: Castle::API::Lists::Create

Defined in:
lib/castle/api/lists/create.rb

Overview

Sends POST /lists request

Class Method Summary collapse

Class Method Details

.call(options = {}) ⇒ Hash

Parameters:

  • options (Hash) (defaults to: {})

Returns:

  • (Hash)


12
13
14
15
16
17
18
# File 'lib/castle/api/lists/create.rb', line 12

def call(options = {})
  options = Castle::Utils::DeepSymbolizeKeys.call(options || {})
  http = options.delete(:http)
  config = options.delete(:config) || Castle.config

  Castle::API.call(Castle::Commands::Lists::Create.build(options), {}, http, config)
end