Class: Zencoder::Notification

Inherits:
Resource
  • Object
show all
Defined in:
lib/zencoder/notification.rb

Class Method Summary collapse

Methods inherited from Resource

api_key, base_url, delete, get, post, put

Methods included from Serializer

#decode, #encode, included

Class Method Details

.list(options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/zencoder/notification.rb', line 4

def self.list(options={})
  options = options.dup
  params  = {:page     => options.delete(:page) || 1,
             :per_page => options.delete(:per_page) || 50 }

  get("/notifications", merge_params(options, params))
end