class Podio::Live

Public Class Methods

accept(id) click to toggle source
# File lib/podio/models/live.rb, line 35
def accept(id)
  Podio.connection.post("/live/#{id}/accept").status
end
create(ref_type, ref_id, attributes) click to toggle source

@see hoist.podio.com/api/item/45673217

# File lib/podio/models/live.rb, line 14
def create(ref_type, ref_id, attributes)
  response = Podio.connection.post do |req|
    req.url "/live/#{ref_type}/#{ref_id}"
    req.body = attributes
  end

  member response.body
end
decline(id) click to toggle source
# File lib/podio/models/live.rb, line 39
def decline(id)
  Podio.connection.post("/live/#{id}/decline").status
end
delete(id) click to toggle source
# File lib/podio/models/live.rb, line 31
def delete(id)
  Podio.connection.delete("/live/#{id}").body
end
update(id, attributes) click to toggle source
# File lib/podio/models/live.rb, line 23
def update(id, attributes)
  response = Podio.connection.put do |req|
    req.url "/live/#{id}/settings"
    req.body = attributes
  end
  response.status
end