class Podio::Reminder
Public Class Methods
create(ref_type, ref_id, attributes)
click to toggle source
@see developers.podio.com/doc/reminders/create-or-update-reminder-3315055
# File lib/podio/models/reminder.rb, line 20 def create(ref_type, ref_id, attributes) response = Podio.connection.post do |req| req.url "/reminder/#{ref_type}/#{ref_id}" req.body = attributes end response.status end
delete(ref_type, ref_id)
click to toggle source
@see developers.podio.com/doc/reminders/delete-reminder-3315117
# File lib/podio/models/reminder.rb, line 10 def delete(ref_type, ref_id) Podio.connection.delete("/reminder/#{ref_type}/#{ref_id}").body end
snooze(ref_type, ref_id)
click to toggle source
@see developers.podio.com/doc/reminders/snooze-reminder-3321049
# File lib/podio/models/reminder.rb, line 15 def snooze(ref_type, ref_id) Podio.connection.post("/reminder/#{ref_type}/#{ref_id}/snooze").body end
update(ref_type, ref_id, attributes)
click to toggle source
@see developers.podio.com/doc/reminders/create-or-update-reminder-3315055
# File lib/podio/models/reminder.rb, line 29 def update(ref_type, ref_id, attributes) response = Podio.connection.put do |req| req.url "/reminder/#{ref_type}/#{ref_id}" req.body = attributes end response.status end