Class: GoApiClient::DependencyMaterial
- Inherits:
-
Object
- Object
- GoApiClient::DependencyMaterial
- Defined in:
- lib/go_api_client/dependency_material.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#pipeline_name ⇒ Object
readonly
Returns the value of attribute pipeline_name.
-
#stage_name ⇒ Object
readonly
Returns the value of attribute stage_name.
Instance Method Summary collapse
-
#initialize(root) ⇒ DependencyMaterial
constructor
A new instance of DependencyMaterial.
- #parse! ⇒ Object
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
#identifier ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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 |