Class: Shakha::Config
- Inherits:
-
Object
- Object
- Shakha::Config
- Defined in:
- lib/shakha/config.rb
Instance Attribute Summary collapse
-
#allowed_redirect_origins ⇒ Object
Returns the value of attribute allowed_redirect_origins.
-
#app_origin ⇒ Object
Returns the value of attribute app_origin.
-
#github_client_id ⇒ Object
Returns the value of attribute github_client_id.
-
#github_client_secret ⇒ Object
Returns the value of attribute github_client_secret.
-
#google_client_id ⇒ Object
Returns the value of attribute google_client_id.
-
#google_client_secret ⇒ Object
Returns the value of attribute google_client_secret.
-
#providers ⇒ Object
Returns the value of attribute providers.
-
#rate_limiting_enabled ⇒ Object
Returns the value of attribute rate_limiting_enabled.
-
#session_lifetime ⇒ Object
Returns the value of attribute session_lifetime.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
15 16 17 18 19 |
# File 'lib/shakha/config.rb', line 15 def initialize @session_lifetime = 30.days @rate_limiting_enabled = false @providers = [:google] end |
Instance Attribute Details
#allowed_redirect_origins ⇒ Object
Returns the value of attribute allowed_redirect_origins.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def allowed_redirect_origins @allowed_redirect_origins end |
#app_origin ⇒ Object
Returns the value of attribute app_origin.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def app_origin @app_origin end |
#github_client_id ⇒ Object
Returns the value of attribute github_client_id.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def github_client_id @github_client_id end |
#github_client_secret ⇒ Object
Returns the value of attribute github_client_secret.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def github_client_secret @github_client_secret end |
#google_client_id ⇒ Object
Returns the value of attribute google_client_id.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def google_client_id @google_client_id end |
#google_client_secret ⇒ Object
Returns the value of attribute google_client_secret.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def google_client_secret @google_client_secret end |
#providers ⇒ Object
Returns the value of attribute providers.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def providers @providers end |
#rate_limiting_enabled ⇒ Object
Returns the value of attribute rate_limiting_enabled.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def rate_limiting_enabled @rate_limiting_enabled end |
#session_lifetime ⇒ Object
Returns the value of attribute session_lifetime.
5 6 7 |
# File 'lib/shakha/config.rb', line 5 def session_lifetime @session_lifetime end |