Class: Buildkite::Pipelines::StepContext
- Inherits:
-
Object
- Object
- Buildkite::Pipelines::StepContext
- Defined in:
- lib/buildkite/pipelines/step_context.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(step, **args) ⇒ StepContext
constructor
A new instance of StepContext.
Constructor Details
#initialize(step, **args) ⇒ StepContext
Returns a new instance of StepContext.
10 11 12 13 14 |
# File 'lib/buildkite/pipelines/step_context.rb', line 10 def initialize(step, **args) @step = step @args = args @data = {} end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
7 8 9 |
# File 'lib/buildkite/pipelines/step_context.rb', line 7 def args @args end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/buildkite/pipelines/step_context.rb', line 8 def data @data end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
6 7 8 |
# File 'lib/buildkite/pipelines/step_context.rb', line 6 def step @step end |
Instance Method Details
#[](key) ⇒ Object
16 17 18 |
# File 'lib/buildkite/pipelines/step_context.rb', line 16 def [](key) args[key] end |