Class: GOCD::PIPELINE_CONFIG::PipelineGroup
- Inherits:
-
Object
- Object
- GOCD::PIPELINE_CONFIG::PipelineGroup
- Includes:
- GOCD::PIPELINE_CONFIG
- Defined in:
- lib/gocd/pipeline_config/pipeline_group.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pipelines ⇒ Object
readonly
Returns the value of attribute pipelines.
Instance Method Summary collapse
-
#initialize(group_data) ⇒ PipelineGroup
constructor
A new instance of PipelineGroup.
Methods included from GOCD::PIPELINE_CONFIG
#environments, #groups, #pipeline_config_response, #templates, #to_array
Constructor Details
#initialize(group_data) ⇒ PipelineGroup
Returns a new instance of PipelineGroup.
9 10 11 12 |
# File 'lib/gocd/pipeline_config/pipeline_group.rb', line 9 def initialize(group_data) @name = group_data['@group'] @pipelines = to_pipelines(group_data['pipeline']) || [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/gocd/pipeline_config/pipeline_group.rb', line 7 def name @name end |
#pipelines ⇒ Object (readonly)
Returns the value of attribute pipelines.
7 8 9 |
# File 'lib/gocd/pipeline_config/pipeline_group.rb', line 7 def pipelines @pipelines end |