Class: Cloudscale::Benchmark::BenchmarkRunResult
- Inherits:
-
Object
- Object
- Cloudscale::Benchmark::BenchmarkRunResult
- Includes:
- Hashable
- Defined in:
- lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb
Instance Attribute Summary collapse
-
#benchmarkRun ⇒ Object
Returns the value of attribute benchmarkRun.
-
#benchmarkRunResultValues ⇒ Object
Returns the value of attribute benchmarkRunResultValues.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#rawBenchmarkOutput ⇒ Object
Returns the value of attribute rawBenchmarkOutput.
Instance Method Summary collapse
-
#initialize(benchmarkRun) ⇒ BenchmarkRunResult
constructor
A new instance of BenchmarkRunResult.
- #pushResultValue(benchmarkRunResultValue) ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize(benchmarkRun) ⇒ BenchmarkRunResult
Returns a new instance of BenchmarkRunResult.
15 16 17 18 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 15 def initialize(benchmarkRun) @benchmarkRun = benchmarkRun @benchmarkRunResultValues = Array.new end |
Instance Attribute Details
#benchmarkRun ⇒ Object
Returns the value of attribute benchmarkRun.
13 14 15 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 13 def benchmarkRun @benchmarkRun end |
#benchmarkRunResultValues ⇒ Object
Returns the value of attribute benchmarkRunResultValues.
13 14 15 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 13 def benchmarkRunResultValues @benchmarkRunResultValues end |
#hostname ⇒ Object
Returns the value of attribute hostname.
13 14 15 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 13 def hostname @hostname end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
13 14 15 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 13 def ip_address @ip_address end |
#rawBenchmarkOutput ⇒ Object
Returns the value of attribute rawBenchmarkOutput.
13 14 15 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 13 def rawBenchmarkOutput @rawBenchmarkOutput end |
Instance Method Details
#pushResultValue(benchmarkRunResultValue) ⇒ Object
26 27 28 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 26 def pushResultValue(benchmarkRunResultValue) @benchmarkRunResultValues.push(benchmarkRunResultValue) end |
#to_h ⇒ Object
20 21 22 23 24 |
# File 'lib/cloudscale/benchmark/model/benchmark/benchmark_run_result.rb', line 20 def to_h hash = {} instance_variables.each {|var| hash[var.to_s.delete("@")] = instance_variable_get(var) } return hash end |