Module: Uber::API::Promotions

Included in:
Uber::API
Defined in:
lib/uber/api/promotions.rb

Instance Method Summary collapse

Instance Method Details

#promotion(*args) ⇒ Object



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

def promotion(*args)
  arguments = Uber::Arguments.new(args)
  perform_with_object(:get, "/v1/promotions", arguments.options, Promotion)
end