Module: Latitude::API::Operations::Retrieve

Instance Method Summary collapse

Instance Method Details

#retrieve(id, params = {}, opts = {}) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/latitude/api/operations/retrieve.rb', line 7

def retrieve(id, params = {}, opts = {})
  params = params.dup
  path_params = extract_path_params(params, path_param_keys)
  query = RequestParams.encode(params)
  parsed = execute_request(
    method: :get,
    path: instance_url(id, path_params: path_params),
    query: query,
    opts: opts,
  )
  construct_from(parsed, opts: opts, path_params: path_params)
end