Module: PollEverywhere::HTTP::Adapter

Defined in:
lib/polleverywhere/http/adapter.rb

Overview

HTTP adapters make it possible to deal with syncronous or asyncronous HTTP libraries

Defined Under Namespace

Classes: Doc, Sync, Test

Class Method Summary collapse

Class Method Details

.register(name, klass) ⇒ Object


11
12
13
# File 'lib/polleverywhere/http/adapter.rb', line 11

def self.register(name, klass)
  registry[name] = klass
end

.registryObject


7
8
9
# File 'lib/polleverywhere/http/adapter.rb', line 7

def self.registry
  @adapters ||= Hash.new{|hash,key| h[k.to_sym] }
end