Class: RobustServerSocket::ConfigStore
- Inherits:
-
Object
- Object
- RobustServerSocket::ConfigStore
- Defined in:
- lib/robust_server_socket/configuration.rb
Instance Attribute Summary collapse
-
#_bang_modules_check_rows ⇒ Object
readonly
Returns the value of attribute _bang_modules_check_rows.
-
#_modules_check_rows ⇒ Object
readonly
Returns the value of attribute _modules_check_rows.
-
#allowed_services ⇒ Object
Returns the value of attribute allowed_services.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#rate_limit_max_requests ⇒ Object
Returns the value of attribute rate_limit_max_requests.
-
#rate_limit_window_seconds ⇒ Object
Returns the value of attribute rate_limit_window_seconds.
-
#redis_pass ⇒ Object
Returns the value of attribute redis_pass.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
-
#store_used_token_time ⇒ Object
Returns the value of attribute store_used_token_time.
-
#token_expiration_time ⇒ Object
Returns the value of attribute token_expiration_time.
-
#using_modules ⇒ Object
Returns the value of attribute using_modules.
Instance Method Summary collapse
-
#initialize ⇒ ConfigStore
constructor
A new instance of ConfigStore.
Constructor Details
#initialize ⇒ ConfigStore
Returns a new instance of ConfigStore.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/robust_server_socket/configuration.rb', line 59 def initialize @rate_limit_max_requests = 100 @rate_limit_window_seconds = 60 @store_used_token_time = 600 @token_expiration_time = 10 @using_modules = i[ client_auth_protection dos_attack_protection replay_attack_protection ] @_modules_check_rows = [] @_bang_modules_check_rows = [] end |
Instance Attribute Details
#_bang_modules_check_rows ⇒ Object (readonly)
Returns the value of attribute _bang_modules_check_rows.
57 58 59 |
# File 'lib/robust_server_socket/configuration.rb', line 57 def _bang_modules_check_rows @_bang_modules_check_rows end |
#_modules_check_rows ⇒ Object (readonly)
Returns the value of attribute _modules_check_rows.
57 58 59 |
# File 'lib/robust_server_socket/configuration.rb', line 57 def _modules_check_rows @_modules_check_rows end |
#allowed_services ⇒ Object
Returns the value of attribute allowed_services.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def allowed_services @allowed_services end |
#private_key ⇒ Object
Returns the value of attribute private_key.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def private_key @private_key end |
#rate_limit_max_requests ⇒ Object
Returns the value of attribute rate_limit_max_requests.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def rate_limit_max_requests @rate_limit_max_requests end |
#rate_limit_window_seconds ⇒ Object
Returns the value of attribute rate_limit_window_seconds.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def rate_limit_window_seconds @rate_limit_window_seconds end |
#redis_pass ⇒ Object
Returns the value of attribute redis_pass.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def redis_pass @redis_pass end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def redis_url @redis_url end |
#store_used_token_time ⇒ Object
Returns the value of attribute store_used_token_time.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def store_used_token_time @store_used_token_time end |
#token_expiration_time ⇒ Object
Returns the value of attribute token_expiration_time.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def token_expiration_time @token_expiration_time end |
#using_modules ⇒ Object
Returns the value of attribute using_modules.
54 55 56 |
# File 'lib/robust_server_socket/configuration.rb', line 54 def using_modules @using_modules end |