Module: Uber::Utils

Included in:
API, API::Deliveries, API::Partners
Defined in:
lib/uber/utils.rb

Instance Method Summary collapse

Instance Method Details

#perform_with_object(request_method, path, options, klass, client = self) ⇒ Object

Parameters:

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


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

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

#perform_with_objects(request_method, path, options, klass, client = self) ⇒ Object

Parameters:

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


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

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

#perform_without_object(request_method, path, options, client = self) ⇒ Object

Parameters:

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


27
28
29
30
# File 'lib/uber/utils.rb', line 27

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