Module: Uber::API::Partners

Includes:
Utils
Included in:
Partner::Client
Defined in:
lib/uber/api/partners.rb

Instance Method Summary collapse

Methods included from Utils

#perform_with_object, #perform_with_objects, #perform_without_object

Instance Method Details

#meObject



9
10
11
# File 'lib/uber/api/partners.rb', line 9

def me
  perform_with_object(:get, "v1/partners/me", {}, Uber::Partner::Partner, self.client)
end

#payments(*args) ⇒ Object Also known as: earnings



13
14
15
16
# File 'lib/uber/api/partners.rb', line 13

def payments(*args)
  arguments = Uber::Arguments.new(args)
  perform_with_object(:get, "/v1/partners/payments", arguments.options, Uber::Partner::PaymentActivity, self.client)
end

#trips(*args) ⇒ Object



18
19
20
21
# File 'lib/uber/api/partners.rb', line 18

def trips(*args)
  arguments = Uber::Arguments.new(args)
  perform_with_object(:get, "/v1/partners/trips", arguments.options, Uber::Partner::TripActivity, self.client)
end