Class: Podio::Reminder
Overview
Instance Attribute Summary
#attributes
Class Method Summary
collapse
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, has_many, has_one, #hash, #initialize, #initialize_attributes, klass_from_string, list, member, #new_record?, output_attribute_as_json, #parent_model, #persisted?, property, #to_param
Class Method Details
.create(ref_type, ref_id, attributes) ⇒ Object
20
21
22
23
24
25
26
|
# 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) ⇒ Object
10
11
12
|
# 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) ⇒ Object
15
16
17
|
# 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) ⇒ Object
29
30
31
32
33
34
35
|
# 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
|