Module: Hook::Channel

Defined in:
lib/hook-client/channel.rb

Class Method Summary collapse

Class Method Details

.create(client, name, options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/hook-client/channel.rb', line 6

def self.create(client, name, options = {})
  channel_klass = (options.delete(:transport) || 'sse').upcase
  collection = Collection.new(name, :channel => true)
  self.const_get(channel_klass).new(client, collection, options)
end