Class: Podio::StreamMute
- Inherits:
-
ActivePodio::Base
- Object
- ActivePodio::Base
- Podio::StreamMute
- Defined in:
- lib/podio/models/stream_mute.rb
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
Class Method Summary collapse
- .create(scope_type, scope_id, object_type = nil) ⇒ Object
- .delete(scope_type, scope_id, object_type = nil) ⇒ Object
- .find_all ⇒ Object
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, list, member, #new_record?, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.create(scope_type, scope_id, object_type = nil) ⇒ Object
15 16 17 18 19 |
# File 'lib/podio/models/stream_mute.rb', line 15 def create(scope_type, scope_id, object_type = nil) path = "/stream/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
21 22 23 24 25 |
# File 'lib/podio/models/stream_mute.rb', line 21 def delete(scope_type, scope_id, object_type = nil) path = "/stream/mute/#{scope_type}/#{scope_id}" path += "/#{object_type}" unless object_type.nil? Podio.connection.delete(path).status end |
.find_all ⇒ Object
11 12 13 |
# File 'lib/podio/models/stream_mute.rb', line 11 def find_all list Podio.connection.get('/stream/mute/v2/').body end |