Class: BigBench::PostProcessor::Environment::Appearings
- Inherits:
-
Object
- Object
- BigBench::PostProcessor::Environment::Appearings
- Includes:
- BigBench::PostProcessor::Environment
- Defined in:
- lib/bigbench/post_processor/environment.rb
Overview
Lists the appearing attributes for a scope
Instance Attribute Summary collapse
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#statuses ⇒ Object
readonly
Returns the value of attribute statuses.
Instance Method Summary collapse
-
#initialize(scope = :all) ⇒ Appearings
constructor
A new instance of Appearings.
Methods included from BigBench::PostProcessor::Environment
#appearing, #cluster, #each_benchmark, #each_tracking, #normal_distribution, #polynomial_regression, reset!, #scope, #scope_to_benchmark, #statistics, #trackings
Constructor Details
#initialize(scope = :all) ⇒ Appearings
Returns a new instance of Appearings.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 |
# File 'lib/bigbench/post_processor/environment.rb', line 390 def initialize scope = :all @methods, @statuses, @paths = [], [], [] trackings.each do |tracking| next if !(tracking[:benchmark] == scope or scope == :all) # Add appearing attributes @methods << tracking[:method] @statuses << tracking[:status] @paths << tracking[:path] end # Unique attributes @methods.uniq! @statuses.uniq! @paths.uniq! end |
Instance Attribute Details
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
386 387 388 |
# File 'lib/bigbench/post_processor/environment.rb', line 386 def methods @methods end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
388 389 390 |
# File 'lib/bigbench/post_processor/environment.rb', line 388 def paths @paths end |
#statuses ⇒ Object (readonly)
Returns the value of attribute statuses.
387 388 389 |
# File 'lib/bigbench/post_processor/environment.rb', line 387 def statuses @statuses end |