Module: Uber::API::Reminders

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

Instance Method Summary collapse

Instance Method Details

#add_reminder(*args) ⇒ Object



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

def add_reminder(*args)
  arguments = sanitize_time(Uber::Arguments.new(args))
  perform_with_object(:post, "/v1/reminders", arguments.options, Reminder)
end

#delete_reminder(reminder_id) ⇒ Object



23
24
25
# File 'lib/uber/api/reminders.rb', line 23

def delete_reminder(reminder_id)
  perform_with_object(:delete, "/v1/reminders/#{reminder_id}", {}, Reminder)
end

#reminder(reminder_id) ⇒ Object Also known as: reminder_detail



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

def reminder(reminder_id)
  perform_with_object(:get, "/v1/reminders/#{reminder_id}", {}, Reminder)
end

#update_reminder(reminder_id, *args) ⇒ Object



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

def update_reminder(reminder_id, *args)
  arguments = sanitize_time(Uber::Arguments.new(args))
  perform_with_object(:patch, "/v1/reminders/#{reminder_id}", arguments.options, Reminder)
end