Class: GOCD::PIPELINE_CONFIG::PipelineGroup

Inherits:
Object
  • Object
show all
Includes:
GOCD::PIPELINE_CONFIG
Defined in:
lib/gocd/pipeline_config/pipeline_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/gocd/pipeline_config/pipeline_group.rb', line 7

def name
  @name
end

#pipelinesObject (readonly)

Returns the value of attribute pipelines.



7
8
9
# File 'lib/gocd/pipeline_config/pipeline_group.rb', line 7

def pipelines
  @pipelines
end