Class: Podio::CalendarMute
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(scope_type, scope_id, object_type = nil) ⇒ Object
19
20
21
22
23
|
# File 'lib/podio/models/calendar_mute.rb', line 19
def create(scope_type, scope_id, object_type = nil)
path = "/calendar/mute/#{scope_type}/#{scope_id}/"
path += "#{object_type}/" unless object_type.nil?
Podio.connection.post(path).status
end
|
.delete(scope_type, scope_id, object_type = nil) ⇒ Object
26
27
28
29
30
|
# File 'lib/podio/models/calendar_mute.rb', line 26
def delete(scope_type, scope_id, object_type = nil)
path = "/calendar/mute/#{scope_type}/#{scope_id}/"
path += "#{object_type}/" unless object_type.nil?
Podio.connection.delete(path).status
end
|
.find_all ⇒ Object
14
15
16
|
# File 'lib/podio/models/calendar_mute.rb', line 14
def find_all
list Podio.connection.get('/calendar/mute/').body
end
|