class Sproutvideo::AccessGrant
Public Class Methods
bulk_create(access_grants, options={})
click to toggle source
# File lib/sproutvideo/access_grant.rb, line 29 def self.bulk_create(access_grants, options={}) post("/access_grants/bulk", options) end
create(options={})
click to toggle source
# File lib/sproutvideo/access_grant.rb, line 4 def self.create(options={}) post("/access_grants", options) end
destroy(access_grant_id, options={})
click to toggle source
# File lib/sproutvideo/access_grant.rb, line 25 def self.destroy(access_grant_id, options={}) delete("/access_grants/#{access_grant_id}", options) end
details(access_grant_id, options={})
click to toggle source
# File lib/sproutvideo/access_grant.rb, line 17 def self.details(access_grant_id, options={}) get("/access_grants/#{access_grant_id}", options) end
list(options={})
click to toggle source
# File lib/sproutvideo/access_grant.rb, line 8 def self.list(options={}) params = { :page => options.delete(:page) || 1, :per_page => options.delete(:per_page) || 25 } params = params.merge(options) get("/access_grants", params) end
update(access_grant_id, options={})
click to toggle source
# File lib/sproutvideo/access_grant.rb, line 21 def self.update(access_grant_id, options={}) put("/access_grants/#{access_grant_id}", options) end