Module: Castle::API::Track

Defined in:
lib/castle/api/track.rb

Class Method Summary collapse

Class Method Details

.call(options = {}) ⇒ Object

Parameters:

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


8
9
10
11
12
13
14
15
# File 'lib/castle/api/track.rb', line 8

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

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