class Podio::StreamMute

@see developers.podio.com/doc/stream

Public Class Methods

create(scope_type, scope_id) click to toggle source

@see developers.podio.com/doc/stream/mute-object-from-global-stream-79424

# 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) click to toggle source

@see developers.podio.com/doc/stream/unmute-objects-from-the-global-stream-79426

# 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() click to toggle source

@see developers.podio.com/doc/stream/get-mutes-in-global-stream-62742

# File lib/podio/models/stream_mute.rb, line 10
def find_all
  list Podio.connection.get('/stream/mute/v2/').body
end