Module: Goldfinger::Utils

Included in:
Client
Defined in:
lib/goldfinger/utils.rb

Instance Method Summary collapse

Instance Method Details

#perform_get(path, options = {}) ⇒ Object



3
4
5
# File 'lib/goldfinger/utils.rb', line 3

def perform_get(path, options = {})
  perform_request(:get, path, options)
end

#perform_request(request_method, path, options = {}) ⇒ Object



7
8
9
# File 'lib/goldfinger/utils.rb', line 7

def perform_request(request_method, path, options = {})
  Goldfinger::Request.new(request_method, path, options).perform
end