Class: Zencoder::Notification

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

Class Method Summary collapse

Methods inherited from Base

api_key, base_url, decode, #decode, encode, #encode

Class Method Details

.list(options = {}) ⇒ Object


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

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

  HTTP.get("#{options[:base_url] || base_url}/notifications", merge_params(options, params))
end