class Podio::Filter
Public Class Methods
create(app_id, attributes)
click to toggle source
# File lib/podio/models/filter.rb, line 33 def create(app_id, attributes) response = Podio.connection.post do |req| req.url "/filter/app/#{app_id}/" req.body = attributes end response.body['filter_id'] end
delete(filter_id)
click to toggle source
# File lib/podio/models/filter.rb, line 29 def delete(filter_id) Podio.connection.delete("/filter/#{filter_id}").status end
find(id)
click to toggle source
# File lib/podio/models/filter.rb, line 25 def find(id) member Podio.connection.get("/filter/#{id}").body end
find_all(app_id)
click to toggle source
# File lib/podio/models/filter.rb, line 19 def find_all(app_id) list Podio.connection.get { |req| req.url("/filter/app/#{app_id}/") }.body end
find_last(app_id)
click to toggle source
# File lib/podio/models/filter.rb, line 15 def find_last(app_id) member Podio.connection.get("/filter/app/#{app_id}/last").body end