Module: Async::Aws

Defined in:
lib/async/aws.rb,
lib/async/aws/version.rb,
lib/async/aws/http_plugin.rb,
lib/async/aws/http_handler.rb

Defined Under Namespace

Classes: HttpHandler, HttpPlugin

Constant Summary collapse

VERSION =
'1.0.2'

Class Method Summary collapse

Class Method Details

.configObject



9
10
11
# File 'lib/async/aws.rb', line 9

def config
  @config ||= {}
end

.configure(**kwargs) ⇒ Object



13
14
15
# File 'lib/async/aws.rb', line 13

def configure(**kwargs)
  config.merge!(kwargs.slice(:connection_limit))
end

.connection_limitObject



25
26
27
# File 'lib/async/aws.rb', line 25

def connection_limit
  config.fetch(:connection_limit, 1)
end

.connection_limit=(arg) ⇒ Object



21
22
23
# File 'lib/async/aws.rb', line 21

def connection_limit=(arg)
  config[:connection_limit] = arg.to_i
end

.set(key, value) ⇒ Object



17
18
19
# File 'lib/async/aws.rb', line 17

def set(key, value)
  __send__("#{key}=".to_sym, value)
end