Class: RobustServerSocket::ConfigStore

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigStore

Returns a new instance of ConfigStore.



77
78
79
80
81
82
83
84
# File 'lib/robust_server_socket/configuration.rb', line 77

def initialize
  @rate_limit_max_requests = 100
  @rate_limit_window_seconds = 60
  @token_expiration_time = 10
  @using_modules = %i[client_auth_protection rate_limit_protection replay_attack_protection]
  @_modules_check_rows = []
  @_bang_modules_check_rows = []
end

Instance Attribute Details

#_bang_modules_check_rowsObject (readonly)

Returns the value of attribute _bang_modules_check_rows.



75
76
77
# File 'lib/robust_server_socket/configuration.rb', line 75

def _bang_modules_check_rows
  @_bang_modules_check_rows
end

#_modules_check_rowsObject (readonly)

Returns the value of attribute _modules_check_rows.



75
76
77
# File 'lib/robust_server_socket/configuration.rb', line 75

def _modules_check_rows
  @_modules_check_rows
end

#allowed_servicesObject

Returns the value of attribute allowed_services.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def allowed_services
  @allowed_services
end

#private_keyObject

Returns the value of attribute private_key.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def private_key
  @private_key
end

#rate_limit_max_requestsObject

Returns the value of attribute rate_limit_max_requests.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def rate_limit_max_requests
  @rate_limit_max_requests
end

#rate_limit_window_secondsObject

Returns the value of attribute rate_limit_window_seconds.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def rate_limit_window_seconds
  @rate_limit_window_seconds
end

#redis_passObject

Returns the value of attribute redis_pass.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def redis_pass
  @redis_pass
end

#redis_urlObject

Returns the value of attribute redis_url.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def redis_url
  @redis_url
end

#token_expiration_timeObject

Returns the value of attribute token_expiration_time.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def token_expiration_time
  @token_expiration_time
end

#using_modulesObject

Returns the value of attribute using_modules.



71
72
73
# File 'lib/robust_server_socket/configuration.rb', line 71

def using_modules
  @using_modules
end