Class: GoApiClient::Domain::Stage

Inherits:
AttributeHelper show all
Defined in:
lib/go_api_client/domain/stage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Stage

Returns a new instance of Stage.



14
15
16
# File 'lib/go_api_client/domain/stage.rb', line 14

def initialize(attributes={})
  super(attributes)
end

Instance Attribute Details

#approved_byObject

Tags



8
9
10
# File 'lib/go_api_client/domain/stage.rb', line 8

def approved_by
  @approved_by
end

#counterObject

Self attributes



6
7
8
# File 'lib/go_api_client/domain/stage.rb', line 6

def counter
  @counter
end

#idObject

Tags



8
9
10
# File 'lib/go_api_client/domain/stage.rb', line 8

def id
  @id
end

#jobsObject

Tags



8
9
10
# File 'lib/go_api_client/domain/stage.rb', line 8

def jobs
  @jobs
end

#nameObject

Self attributes



6
7
8
# File 'lib/go_api_client/domain/stage.rb', line 6

def name
  @name
end

#parsed_jobsObject

Parsed object



12
13
14
# File 'lib/go_api_client/domain/stage.rb', line 12

def parsed_jobs
  @parsed_jobs
end

#parsed_pipelineObject

Parsed object



12
13
14
# File 'lib/go_api_client/domain/stage.rb', line 12

def parsed_pipeline
  @parsed_pipeline
end

#pipeline_counterObject

Pipeline tag



10
11
12
# File 'lib/go_api_client/domain/stage.rb', line 10

def pipeline_counter
  @pipeline_counter
end

#pipeline_labelObject

Pipeline tag



10
11
12
# File 'lib/go_api_client/domain/stage.rb', line 10

def pipeline_label
  @pipeline_label
end

#pipeline_nameObject

Pipeline tag



10
11
12
# File 'lib/go_api_client/domain/stage.rb', line 10

def pipeline_name
  @pipeline_name
end

#pipeline_uriObject

Pipeline tag



10
11
12
# File 'lib/go_api_client/domain/stage.rb', line 10

def pipeline_uri
  @pipeline_uri
end

#resultObject

Tags



8
9
10
# File 'lib/go_api_client/domain/stage.rb', line 8

def result
  @result
end

#self_uriObject

Tags



8
9
10
# File 'lib/go_api_client/domain/stage.rb', line 8

def self_uri
  @self_uri
end

#stateObject

Tags



8
9
10
# File 'lib/go_api_client/domain/stage.rb', line 8

def state
  @state
end

#updatedObject

Tags



8
9
10
# File 'lib/go_api_client/domain/stage.rb', line 8

def updated
  @updated
end

Instance Method Details

#failed?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/go_api_client/domain/stage.rb', line 18

def failed?
  'Failed' == @result
end

#passed?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/go_api_client/domain/stage.rb', line 22

def passed?
  !failed?
end