Class: RailsApiBenchmark::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auth_headerObject

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_cmdObject

Returns the value of attribute bench_cmd.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def bench_cmd
  @bench_cmd
end

#concurrencyObject

Returns the value of attribute concurrency.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def concurrency
  @concurrency
end

#curl_cmdObject

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_varsObject

Returns the value of attribute env_vars.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def env_vars
  @env_vars
end

#hostObject

Returns the value of attribute host.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def host
  @host
end

#nb_requestsObject

Returns the value of attribute nb_requests.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def nb_requests
  @nb_requests
end

#regexpsObject

Returns the value of attribute regexps.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def regexps
  @regexps
end

#results_folderObject

Returns the value of attribute results_folder.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def results_folder
  @results_folder
end

#routesObject

Returns the value of attribute routes.



12
13
14
# File 'lib/rails_api_benchmark.rb', line 12

def routes
  @routes
end

#server_cmdObject

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

#allObject



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