Class: RailsApiBenchmark::Config
- Inherits:
-
Object
- Object
- RailsApiBenchmark::Config
- Defined in:
- lib/rails_api_benchmark.rb
Instance Attribute Summary collapse
-
#auth_header ⇒ Object
Returns the value of attribute auth_header.
-
#bench_cmd ⇒ Object
Returns the value of attribute bench_cmd.
-
#concurrency ⇒ Object
Returns the value of attribute concurrency.
-
#curl_cmd ⇒ Object
Returns the value of attribute curl_cmd.
-
#env_vars ⇒ Object
Returns the value of attribute env_vars.
-
#host ⇒ Object
Returns the value of attribute host.
-
#nb_requests ⇒ Object
Returns the value of attribute nb_requests.
-
#regexps ⇒ Object
Returns the value of attribute regexps.
-
#results_folder ⇒ Object
Returns the value of attribute results_folder.
-
#routes ⇒ Object
Returns the value of attribute routes.
-
#server_cmd ⇒ Object
Returns the value of attribute server_cmd.
Instance Method Summary collapse
Instance Attribute Details
#auth_header ⇒ Object
Returns the value of attribute auth_header.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def auth_header @auth_header end |
#bench_cmd ⇒ Object
Returns the value of attribute bench_cmd.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def bench_cmd @bench_cmd end |
#concurrency ⇒ Object
Returns the value of attribute concurrency.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def concurrency @concurrency end |
#curl_cmd ⇒ Object
Returns the value of attribute curl_cmd.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def curl_cmd @curl_cmd end |
#env_vars ⇒ Object
Returns the value of attribute env_vars.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def env_vars @env_vars end |
#host ⇒ Object
Returns the value of attribute host.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def host @host end |
#nb_requests ⇒ Object
Returns the value of attribute nb_requests.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def nb_requests @nb_requests end |
#regexps ⇒ Object
Returns the value of attribute regexps.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def regexps @regexps end |
#results_folder ⇒ Object
Returns the value of attribute results_folder.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def results_folder @results_folder end |
#routes ⇒ Object
Returns the value of attribute routes.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def routes @routes end |
#server_cmd ⇒ Object
Returns the value of attribute server_cmd.
12 13 14 |
# File 'lib/rails_api_benchmark.rb', line 12 def server_cmd @server_cmd end |
Instance Method Details
#all ⇒ Object
15 16 17 18 19 20 |
# File 'lib/rails_api_benchmark.rb', line 15 def all instance_variables.inject({}) do |h, v| var = v.to_s.sub('@', '') h.merge(var.to_sym => send(var)) end end |