Module: Castle::API::ListItems::Get

Defined in:
lib/castle/api/list_items/get.rb

Overview

Sends GET /lists/:list_id/items/:item_id request

Class Method Summary collapse

Class Method Details

.call(options = {}) ⇒ Hash

Parameters:

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

Returns:

  • (Hash)


11
12
13
14
15
16
17
# File 'lib/castle/api/list_items/get.rb', line 11

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

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