Module: HTTPalooza::Players

Defined in:
lib/httpalooza/players.rb,
lib/httpalooza/players/base.rb,
lib/httpalooza/players/curb.rb,
lib/httpalooza/players/curl.rb,
lib/httpalooza/players/lynx.rb,
lib/httpalooza/players/patron.rb,
lib/httpalooza/players/telnet.rb,
lib/httpalooza/players/unirest.rb,
lib/httpalooza/players/net_http.rb,
lib/httpalooza/players/selenium.rb,
lib/httpalooza/players/typhoeus.rb,
lib/httpalooza/players/http_party.rb,
lib/httpalooza/players/http_client.rb,
lib/httpalooza/players/rest_client.rb,
lib/httpalooza/players/user_browser.rb,
lib/httpalooza/players/em_http_request.rb

Defined Under Namespace

Classes: Base, CurbPlayer, CurlPlayer, EmHttpRequestPlayer, HTTPClientPlayer, HTTPartyPlayer, LynxPlayer, NetHTTPPlayer, PatronPlayer, RestClientPlayer, SeleniumPlayer, TelnetPlayer, TyphoeusPlayer, UnirestPlayer, UserBrowserPlayer

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.availableSet (readonly)

Returns the available Players.

Returns:

  • (Set)

    the available Players



9
10
11
# File 'lib/httpalooza/players.rb', line 9

def available
  @available
end

Class Method Details

.add(klass) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/httpalooza/players.rb', line 9

def add(klass)
  @available ||= Set.new

  begin
    klass.dependencies.each do |depedency|
      require depedency
    end
    available.add(klass)
  rescue LoadError
  end
end