class Podio::Pin

Public Class Methods

create(ref_type, ref_id) click to toggle source
# File lib/podio/models/pin.rb, line 15
def create(ref_type, ref_id)
  new(Podio.connection.post("/pin/#{ref_type}/#{ref_id}").body)
end
delete(ref_type, ref_id) click to toggle source
# File lib/podio/models/pin.rb, line 23
def delete(ref_type, ref_id)
  Podio.connection.delete("/pin/#{ref_type}/#{ref_id}")
end
find_all(query = {}) click to toggle source
# File lib/podio/models/pin.rb, line 11
def find_all(query = {})
  Podio.connection.get("/pin/?#{query.to_param}").body.map(&method(:new))
end
reorder(ref_type, ref_id, priority) click to toggle source
# File lib/podio/models/pin.rb, line 19
def reorder(ref_type, ref_id, priority)
  Podio.connection.post("/pin/#{ref_type}/#{ref_id}/reorder", priority)
end