Module: Uber::API::Reminders
- Included in:
- Uber::API
- Defined in:
- lib/uber/api/reminders.rb
Instance Method Summary collapse
- #add_reminder(*args) ⇒ Object
- #delete_reminder(reminder_id) ⇒ Object
- #reminder(reminder_id) ⇒ Object (also: #reminder_detail)
- #update_reminder(reminder_id, *args) ⇒ Object
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., 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 |