Module: Ecfr::ParallelClient

Included in:
Client
Defined in:
lib/ecfr/parallel_client.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/ecfr/parallel_client.rb', line 25

def self.included(base)
  # only include parallel client if the appropriate adapter is present

  Gem::Specification.find_by_name("faraday-typhoeus")
  base.extend(ClassMethods)
rescue Gem::LoadError
end