Class: Matterhorn::WorkflowStatistics

Inherits:
Object
  • Object
show all
Defined in:
lib/matterhorn/workflow_statistics.rb

Overview

Matterhorn::WorkflowStatistics ===

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#failedObject (readonly)

Returns the value of attribute failed.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def failed
  @failed
end

#failingObject (readonly)

Returns the value of attribute failing.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def failing
  @failing
end

#finishedObject (readonly)

Returns the value of attribute finished.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def finished
  @finished
end

#instantiatedObject (readonly)

Returns the value of attribute instantiated.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def instantiated
  @instantiated
end

#pausedObject (readonly)

Returns the value of attribute paused.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def paused
  @paused
end

#runningObject (readonly)

Returns the value of attribute running.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def running
  @running
end

#stoppedObject (readonly)

Returns the value of attribute stopped.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def stopped
  @stopped
end

#totalObject (readonly)

Returns the value of attribute total.



5
6
7
# File 'lib/matterhorn/workflow_statistics.rb', line 5

def total
  @total
end