Module: Uber::Utils

Included in:
API
Defined in:
lib/uber/utils.rb

Instance Method Summary collapse

Instance Method Details

#perform_with_object(request_method, path, options, klass) ⇒ Object

Parameters:

  • request_method (Symbol)
  • path (String)
  • options (Hash)
  • klass (Class)


11
12
13
14
# File 'lib/uber/utils.rb', line 11

def perform_with_object(request_method, path, options, klass)
  request = Uber::ApiRequest.new(self, request_method, path, options)
  request.perform_with_object(klass)
end

#perform_with_objects(request_method, path, options, klass) ⇒ Object

Parameters:

  • request_method (Symbol)
  • path (String)
  • options (Hash)
  • klass (Class)


20
21
22
23
# File 'lib/uber/utils.rb', line 20

def perform_with_objects(request_method, path, options, klass)
  request = Uber::ApiRequest.new(self, request_method, path, options)
  request.perform_with_objects(klass)
end