Class: Inferno::DSL::Configurable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/inferno/dsl/configurable.rb

Overview

This class stores a runnable’s configuration. It should never be directly instantiated within a test suite. Instead, a runnable’s configuration can be modified or retrieved using the config method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



100
101
102
# File 'lib/inferno/dsl/configurable.rb', line 100

def configuration
  @configuration
end

Instance Method Details

#inputsHash

The input configuration for this runnable.

Returns:

  • (Hash)


135
136
137
# File 'lib/inferno/dsl/configurable.rb', line 135

def inputs
  configuration[:inputs] ||= {}
end

#optionsHash

The configuration options defined for this runnable.

Returns:

  • (Hash)


126
127
128
# File 'lib/inferno/dsl/configurable.rb', line 126

def options
  configuration[:options] ||= {}
end

#outputsHash

The output configuration for this runnable.

Returns:

  • (Hash)


183
184
185
# File 'lib/inferno/dsl/configurable.rb', line 183

def outputs
  configuration[:outputs] ||= {}
end

#requestsHash

The request configuration for this runnable.

Returns:

  • (Hash)


223
224
225
# File 'lib/inferno/dsl/configurable.rb', line 223

def requests
  configuration[:requests] ||= {}
end