Module: Uber::Utils
- Included in:
- API, API::Deliveries, API::Partners
- Defined in:
- lib/uber/utils.rb
Instance Method Summary collapse
- #perform_with_object(request_method, path, options, klass, client = self) ⇒ Object
- #perform_with_objects(request_method, path, options, klass, client = self) ⇒ Object
- #perform_without_object(request_method, path, options, client = self) ⇒ Object
Instance Method Details
#perform_with_object(request_method, path, options, klass, client = self) ⇒ Object
10 11 12 13 |
# File 'lib/uber/utils.rb', line 10 def perform_with_object(request_method, path, , klass, client=self) request = Uber::ApiRequest.new(client, request_method, path, ) request.perform_with_object(klass) end |
#perform_with_objects(request_method, path, options, klass, client = self) ⇒ Object
19 20 21 22 |
# File 'lib/uber/utils.rb', line 19 def perform_with_objects(request_method, path, , klass, client=self) request = Uber::ApiRequest.new(client, request_method, path, ) request.perform_with_objects(klass) end |
#perform_without_object(request_method, path, options, client = self) ⇒ Object
27 28 29 30 |
# File 'lib/uber/utils.rb', line 27 def perform_without_object(request_method, path, , client=self) request = Uber::ApiRequest.new(client, request_method, path, ) request.perform_without_object end |