Method: Thanos::API::Client#get

Defined in:
lib/thanos/api/client.rb

#get(resource, options) ⇒ Object



11
12
13
14
15
# File 'lib/thanos/api/client.rb', line 11

def get(resource, options)
  url = "#{endpoint}/#{resource}"
  response = RestClient.get(url, params: options.merge(authentication))
  Thanos::API::Response.new(response)
end