Class: Podio::StreamMute
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
15
16
17
18
|
# File 'lib/podio/models/stream_mute.rb', line 15
def create(scope_type, scope_id)
path = "/stream/mute/#{scope_type}/#{scope_id}"
Podio.connection.post(path).status
end
|
.delete(scope_type, scope_id) ⇒ Object
21
22
23
24
|
# File 'lib/podio/models/stream_mute.rb', line 21
def delete(scope_type, scope_id)
path = "/stream/mute/#{scope_type}/#{scope_id}"
Podio.connection.delete(path).status
end
|
.find_all ⇒ Object
10
11
12
|
# File 'lib/podio/models/stream_mute.rb', line 10
def find_all
list Podio.connection.get('/stream/mute/v2/').body
end
|