Module: Artemis::Adapters
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/artemis/adapters.rb,
lib/artemis/adapters/curb_adapter.rb,
lib/artemis/adapters/test_adapter.rb,
lib/artemis/adapters/abstract_adapter.rb,
lib/artemis/adapters/net_http_adapter.rb,
lib/artemis/adapters/multi_domain_adapter.rb,
lib/artemis/adapters/net_http_persistent_adapter.rb
Defined Under Namespace
Classes: AbstractAdapter, CurbAdapter, MultiDomainAdapter, NetHttpAdapter, NetHttpPersistentAdapter, TestAdapter
Class Method Summary collapse
-
.lookup(name) ⇒ Object
Returns the constant for the specified adapter name.
Class Method Details
.lookup(name) ⇒ Object
Returns the constant for the specified adapter name.
Artemis::Adapters.lookup(:net_http)
# => Artemis::Adapters::NetHttpAdapter
21 22 23 |
# File 'lib/artemis/adapters.rb', line 21 def lookup(name) const_get("#{name.to_s.camelize}Adapter") end |