Class: GoApiClient::DependencyMaterial

Inherits:
Object
  • Object
show all
Defined in:
lib/go_api_client/dependency_material.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ DependencyMaterial

Returns a new instance of DependencyMaterial.



7
8
9
# File 'lib/go_api_client/dependency_material.rb', line 7

def initialize(root)
  @root = root
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



5
6
7
# File 'lib/go_api_client/dependency_material.rb', line 5

def identifier
  @identifier
end

#pipeline_nameObject (readonly)

Returns the value of attribute pipeline_name.



5
6
7
# File 'lib/go_api_client/dependency_material.rb', line 5

def pipeline_name
  @pipeline_name
end

#stage_nameObject (readonly)

Returns the value of attribute stage_name.



5
6
7
# File 'lib/go_api_client/dependency_material.rb', line 5

def stage_name
  @stage_name
end

Instance Method Details

#parse!Object



11
12
13
14
15
16
17
# File 'lib/go_api_client/dependency_material.rb', line 11

def parse!
  @pipeline_name = @root['pipelineName']
  @stage_name = @root['stageName']
  @identifier = @root.xpath('./modifications/changeset/revision').first.content
  @root = nil
  self
end