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.



102
103
104
# File 'lib/inferno/dsl/configurable.rb', line 102

def configuration
  @configuration
end

Instance Method Details

#inputsHash

The input configuration for this runnable.

Returns:

  • (Hash)


137
138
139
# File 'lib/inferno/dsl/configurable.rb', line 137

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

#optionsHash

The configuration options defined for this runnable.

Returns:

  • (Hash)


128
129
130
# File 'lib/inferno/dsl/configurable.rb', line 128

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

#outputsHash

The output configuration for this runnable.

Returns:

  • (Hash)


190
191
192
# File 'lib/inferno/dsl/configurable.rb', line 190

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

#requestsHash

The request configuration for this runnable.

Returns:

  • (Hash)


230
231
232
# File 'lib/inferno/dsl/configurable.rb', line 230

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