class Awspec::Config

Public Class Methods

new() click to toggle source
# File lib/awspec/config.rb, line 9
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 29
def [](key)
  @config.fetch(key)
end
client_backoff(backoff) click to toggle source
# File lib/awspec/config.rb, line 17
def client_backoff(backoff)
  @config[:client_backoff] = backoff
end
client_backoff_limit(backoff_limit) click to toggle source
# File lib/awspec/config.rb, line 21
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 25
def client_iteration(iteration)
  @config[:client_iteration] = iteration
end
method_missing(method_name, *_args) click to toggle source
# File lib/awspec/config.rb, line 33
def method_missing(method_name, *_args)
  raise UnknownConfiguration, "'#{method_name}' is not a valid configuration for Awspec."
end