Class: RobustServerSocket::ConfigStore
- Inherits:
-
Object
- Object
- RobustServerSocket::ConfigStore
- Defined in:
- lib/robust_server_socket/configuration.rb
Instance Attribute Summary collapse
-
#allowed_services ⇒ Object
Returns the value of attribute allowed_services.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#rate_limit_enabled ⇒ Object
Returns the value of attribute rate_limit_enabled.
-
#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.
-
#token_expiration_time ⇒ Object
Returns the value of attribute token_expiration_time.
Instance Method Summary collapse
-
#initialize ⇒ ConfigStore
constructor
A new instance of ConfigStore.
Constructor Details
#initialize ⇒ ConfigStore
Returns a new instance of ConfigStore.
49 50 51 52 53 |
# File 'lib/robust_server_socket/configuration.rb', line 49 def initialize @rate_limit_enabled = false @rate_limit_max_requests = 100 @rate_limit_window_seconds = 60 end |
Instance Attribute Details
#allowed_services ⇒ Object
Returns the value of attribute allowed_services.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def allowed_services @allowed_services end |
#private_key ⇒ Object
Returns the value of attribute private_key.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def private_key @private_key end |
#rate_limit_enabled ⇒ Object
Returns the value of attribute rate_limit_enabled.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def rate_limit_enabled @rate_limit_enabled end |
#rate_limit_max_requests ⇒ Object
Returns the value of attribute rate_limit_max_requests.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def rate_limit_max_requests @rate_limit_max_requests end |
#rate_limit_window_seconds ⇒ Object
Returns the value of attribute rate_limit_window_seconds.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def rate_limit_window_seconds @rate_limit_window_seconds end |
#redis_pass ⇒ Object
Returns the value of attribute redis_pass.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def redis_pass @redis_pass end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def redis_url @redis_url end |
#token_expiration_time ⇒ Object
Returns the value of attribute token_expiration_time.
46 47 48 |
# File 'lib/robust_server_socket/configuration.rb', line 46 def token_expiration_time @token_expiration_time end |