Class: Solrengine::Auth::Configuration
- Inherits:
-
Object
- Object
- Solrengine::Auth::Configuration
- Defined in:
- lib/solrengine/auth/configuration.rb
Instance Attribute Summary collapse
-
#after_sign_in_path ⇒ Object
Returns the value of attribute after_sign_in_path.
-
#after_sign_out_path ⇒ Object
Returns the value of attribute after_sign_out_path.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#nonce_ttl ⇒ Object
Returns the value of attribute nonce_ttl.
-
#user_class ⇒ Object
Returns the value of attribute user_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #user_model ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 |
# File 'lib/solrengine/auth/configuration.rb', line 8 def initialize @domain = "localhost" @nonce_ttl = 5.minutes @after_sign_in_path = "/" @after_sign_out_path = "/" @user_class = "User" @chain_id = ENV.fetch("SOLANA_NETWORK", "mainnet") end |
Instance Attribute Details
#after_sign_in_path ⇒ Object
Returns the value of attribute after_sign_in_path.
6 7 8 |
# File 'lib/solrengine/auth/configuration.rb', line 6 def after_sign_in_path @after_sign_in_path end |
#after_sign_out_path ⇒ Object
Returns the value of attribute after_sign_out_path.
6 7 8 |
# File 'lib/solrengine/auth/configuration.rb', line 6 def after_sign_out_path @after_sign_out_path end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
6 7 8 |
# File 'lib/solrengine/auth/configuration.rb', line 6 def chain_id @chain_id end |
#domain ⇒ Object
Returns the value of attribute domain.
6 7 8 |
# File 'lib/solrengine/auth/configuration.rb', line 6 def domain @domain end |
#nonce_ttl ⇒ Object
Returns the value of attribute nonce_ttl.
6 7 8 |
# File 'lib/solrengine/auth/configuration.rb', line 6 def nonce_ttl @nonce_ttl end |
#user_class ⇒ Object
Returns the value of attribute user_class.
6 7 8 |
# File 'lib/solrengine/auth/configuration.rb', line 6 def user_class @user_class end |
Instance Method Details
#user_model ⇒ Object
17 18 19 |
# File 'lib/solrengine/auth/configuration.rb', line 17 def user_model @user_class.is_a?(String) ? @user_class.constantize : @user_class end |