Class: Matterhorn::WorkflowStatistics
- Inherits:
-
Object
- Object
- Matterhorn::WorkflowStatistics
- Defined in:
- lib/matterhorn/workflow_statistics.rb
Overview
Matterhorn::WorkflowStatistics ===
Instance Attribute Summary collapse
-
#failed ⇒ Object
readonly
Returns the value of attribute failed.
-
#failing ⇒ Object
readonly
Returns the value of attribute failing.
-
#finished ⇒ Object
readonly
Returns the value of attribute finished.
-
#instantiated ⇒ Object
readonly
Returns the value of attribute instantiated.
-
#paused ⇒ Object
readonly
Returns the value of attribute paused.
-
#running ⇒ Object
readonly
Returns the value of attribute running.
-
#stopped ⇒ Object
readonly
Returns the value of attribute stopped.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowStatistics
constructor
—————————————————————————– initialization —.
Constructor Details
#initialize(json) ⇒ WorkflowStatistics
—————————————————————————– initialization —
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/matterhorn/workflow_statistics.rb', line 12 def initialize(json) @instantiated = json['statistics']['instantiated'].to_i @running = json['statistics']['running'].to_i @paused = json['statistics']['paused'].to_i @stopped = json['statistics']['stopped'].to_i @finished = json['statistics']['finished'].to_i @failing = json['statistics']['failing'].to_i @failed = json['statistics']['failed'].to_i @total = json['statistics']['total'].to_i end |
Instance Attribute Details
#failed ⇒ Object (readonly)
Returns the value of attribute failed.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def failed @failed end |
#failing ⇒ Object (readonly)
Returns the value of attribute failing.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def failing @failing end |
#finished ⇒ Object (readonly)
Returns the value of attribute finished.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def finished @finished end |
#instantiated ⇒ Object (readonly)
Returns the value of attribute instantiated.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def instantiated @instantiated end |
#paused ⇒ Object (readonly)
Returns the value of attribute paused.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def paused @paused end |
#running ⇒ Object (readonly)
Returns the value of attribute running.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def running @running end |
#stopped ⇒ Object (readonly)
Returns the value of attribute stopped.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def stopped @stopped end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
5 6 7 |
# File 'lib/matterhorn/workflow_statistics.rb', line 5 def total @total end |