class Awspec::Config
Public Class Methods
new()
click to toggle source
# File lib/awspec/config.rb, line 11 def initialize @config = { client_backoff: 0.0, client_backoff_limit: 30.0, client_iteration: 1 } end
Public Instance Methods
[](key)
click to toggle source
# File lib/awspec/config.rb, line 31 def [](key) @config.fetch(key) end
client_backoff(backoff)
click to toggle source
# File lib/awspec/config.rb, line 19 def client_backoff(backoff) @config[:client_backoff] = backoff end
client_backoff_limit(backoff_limit)
click to toggle source
# File lib/awspec/config.rb, line 23 def client_backoff_limit(backoff_limit) @config[:client_backoff_limit] = backoff_limit end
client_iteration(iteration)
click to toggle source
# File lib/awspec/config.rb, line 27 def client_iteration(iteration) @config[:client_iteration] = iteration end
method_missing(method_name, *_args)
click to toggle source
# File lib/awspec/config.rb, line 35 def method_missing(method_name, *_args) raise UnknownConfiguration, "'#{method_name}' is not a valid configuration for Awspec." end