Class: RailsApiBenchmark::Renderer
- Inherits:
-
Object
- Object
- RailsApiBenchmark::Renderer
- Defined in:
- lib/rails_api_benchmark/renderer.rb
Instance Attribute Summary collapse
-
#output_dir ⇒ Object
readonly
Returns the value of attribute output_dir.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, results) ⇒ Renderer
constructor
A new instance of Renderer.
- #process ⇒ Object
Constructor Details
#initialize(target, results) ⇒ Renderer
Returns a new instance of Renderer.
5 6 7 8 9 |
# File 'lib/rails_api_benchmark/renderer.rb', line 5 def initialize(target, results) @output_dir = RailsApiBenchmark.config.results_folder @target = target @results = results end |
Instance Attribute Details
#output_dir ⇒ Object (readonly)
Returns the value of attribute output_dir.
3 4 5 |
# File 'lib/rails_api_benchmark/renderer.rb', line 3 def output_dir @output_dir end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
3 4 5 |
# File 'lib/rails_api_benchmark/renderer.rb', line 3 def results @results end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
3 4 5 |
# File 'lib/rails_api_benchmark/renderer.rb', line 3 def target @target end |