Class: Searls::Auth::Config
- Inherits:
-
Struct
- Object
- Struct
- Searls::Auth::Config
- Defined in:
- lib/searls/auth/config.rb
Instance Attribute Summary collapse
-
#after_login_success ⇒ Object
Returns the value of attribute after_login_success.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#default_redirect_path_after_login ⇒ Object
Returns the value of attribute default_redirect_path_after_login.
-
#email_background_color ⇒ Object
Returns the value of attribute email_background_color.
-
#email_banner_image_path ⇒ Object
Returns the value of attribute email_banner_image_path.
-
#email_button_color ⇒ Object
Returns the value of attribute email_button_color.
-
#flash_error_after_login_attempt_unknown_email ⇒ Object
Returns the value of attribute flash_error_after_login_attempt_unknown_email.
-
#flash_error_after_register_attempt ⇒ Object
Returns the value of attribute flash_error_after_register_attempt.
-
#flash_error_after_verify_attempt_exceeds_limit ⇒ Object
Returns the value of attribute flash_error_after_verify_attempt_exceeds_limit.
-
#flash_error_after_verify_attempt_incorrect_short_code ⇒ Object
Returns the value of attribute flash_error_after_verify_attempt_incorrect_short_code.
-
#flash_error_after_verify_attempt_invalid_link ⇒ Object
Returns the value of attribute flash_error_after_verify_attempt_invalid_link.
-
#flash_notice_after_login_attempt ⇒ Object
Returns the value of attribute flash_notice_after_login_attempt.
-
#flash_notice_after_logout ⇒ Object
Returns the value of attribute flash_notice_after_logout.
-
#flash_notice_after_registration ⇒ Object
Returns the value of attribute flash_notice_after_registration.
-
#flash_notice_after_verification ⇒ Object
Returns the value of attribute flash_notice_after_verification.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#login_view ⇒ Object
Returns the value of attribute login_view.
-
#mail_layout ⇒ Object
Returns the value of attribute mail_layout.
-
#mail_login_template_name ⇒ Object
Returns the value of attribute mail_login_template_name.
-
#mail_login_template_path ⇒ Object
Returns the value of attribute mail_login_template_path.
-
#max_allowed_short_code_attempts ⇒ Object
Returns the value of attribute max_allowed_short_code_attempts.
-
#preserve_session_keys_after_logout ⇒ Object
Returns the value of attribute preserve_session_keys_after_logout.
-
#redirect_path_after_register ⇒ Object
Returns the value of attribute redirect_path_after_register.
-
#register_view ⇒ Object
Returns the value of attribute register_view.
-
#support_email_address ⇒ Object
Returns the value of attribute support_email_address.
-
#token_expiry_minutes ⇒ Object
Returns the value of attribute token_expiry_minutes.
-
#token_generator ⇒ Object
Returns the value of attribute token_generator.
-
#user_finder_by_email ⇒ Object
Returns the value of attribute user_finder_by_email.
-
#user_finder_by_id ⇒ Object
Returns the value of attribute user_finder_by_id.
-
#user_finder_by_token ⇒ Object
Returns the value of attribute user_finder_by_token.
-
#user_initializer ⇒ Object
Returns the value of attribute user_initializer.
-
#user_name_method ⇒ Object
Returns the value of attribute user_name_method.
-
#validate_registration ⇒ Object
Returns the value of attribute validate_registration.
-
#verify_view ⇒ Object
Returns the value of attribute verify_view.
Instance Method Summary collapse
-
#resolve(option, *args) ⇒ Object
Get values from values that might be procs.
Instance Attribute Details
#after_login_success ⇒ Object
Returns the value of attribute after_login_success
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def after_login_success @after_login_success end |
#app_name ⇒ Object
Returns the value of attribute app_name
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def app_name @app_name end |
#app_url ⇒ Object
Returns the value of attribute app_url
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def app_url @app_url end |
#default_redirect_path_after_login ⇒ Object
Returns the value of attribute default_redirect_path_after_login
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def default_redirect_path_after_login @default_redirect_path_after_login end |
#email_background_color ⇒ Object
Returns the value of attribute email_background_color
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def email_background_color @email_background_color end |
#email_banner_image_path ⇒ Object
Returns the value of attribute email_banner_image_path
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def @email_banner_image_path end |
#email_button_color ⇒ Object
Returns the value of attribute email_button_color
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def @email_button_color end |
#flash_error_after_login_attempt_unknown_email ⇒ Object
Returns the value of attribute flash_error_after_login_attempt_unknown_email
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_error_after_login_attempt_unknown_email @flash_error_after_login_attempt_unknown_email end |
#flash_error_after_register_attempt ⇒ Object
Returns the value of attribute flash_error_after_register_attempt
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_error_after_register_attempt @flash_error_after_register_attempt end |
#flash_error_after_verify_attempt_exceeds_limit ⇒ Object
Returns the value of attribute flash_error_after_verify_attempt_exceeds_limit
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_error_after_verify_attempt_exceeds_limit @flash_error_after_verify_attempt_exceeds_limit end |
#flash_error_after_verify_attempt_incorrect_short_code ⇒ Object
Returns the value of attribute flash_error_after_verify_attempt_incorrect_short_code
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_error_after_verify_attempt_incorrect_short_code @flash_error_after_verify_attempt_incorrect_short_code end |
#flash_error_after_verify_attempt_invalid_link ⇒ Object
Returns the value of attribute flash_error_after_verify_attempt_invalid_link
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_error_after_verify_attempt_invalid_link @flash_error_after_verify_attempt_invalid_link end |
#flash_notice_after_login_attempt ⇒ Object
Returns the value of attribute flash_notice_after_login_attempt
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_notice_after_login_attempt @flash_notice_after_login_attempt end |
#flash_notice_after_logout ⇒ Object
Returns the value of attribute flash_notice_after_logout
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_notice_after_logout @flash_notice_after_logout end |
#flash_notice_after_registration ⇒ Object
Returns the value of attribute flash_notice_after_registration
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_notice_after_registration @flash_notice_after_registration end |
#flash_notice_after_verification ⇒ Object
Returns the value of attribute flash_notice_after_verification
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def flash_notice_after_verification @flash_notice_after_verification end |
#layout ⇒ Object
Returns the value of attribute layout
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def layout @layout end |
#login_view ⇒ Object
Returns the value of attribute login_view
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def login_view @login_view end |
#mail_layout ⇒ Object
Returns the value of attribute mail_layout
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def mail_layout @mail_layout end |
#mail_login_template_name ⇒ Object
Returns the value of attribute mail_login_template_name
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def mail_login_template_name @mail_login_template_name end |
#mail_login_template_path ⇒ Object
Returns the value of attribute mail_login_template_path
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def mail_login_template_path @mail_login_template_path end |
#max_allowed_short_code_attempts ⇒ Object
Returns the value of attribute max_allowed_short_code_attempts
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def max_allowed_short_code_attempts @max_allowed_short_code_attempts end |
#preserve_session_keys_after_logout ⇒ Object
Returns the value of attribute preserve_session_keys_after_logout
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def preserve_session_keys_after_logout @preserve_session_keys_after_logout end |
#redirect_path_after_register ⇒ Object
Returns the value of attribute redirect_path_after_register
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def redirect_path_after_register @redirect_path_after_register end |
#register_view ⇒ Object
Returns the value of attribute register_view
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def register_view @register_view end |
#support_email_address ⇒ Object
Returns the value of attribute support_email_address
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def support_email_address @support_email_address end |
#token_expiry_minutes ⇒ Object
Returns the value of attribute token_expiry_minutes
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def token_expiry_minutes @token_expiry_minutes end |
#token_generator ⇒ Object
Returns the value of attribute token_generator
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def token_generator @token_generator end |
#user_finder_by_email ⇒ Object
Returns the value of attribute user_finder_by_email
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def user_finder_by_email @user_finder_by_email end |
#user_finder_by_id ⇒ Object
Returns the value of attribute user_finder_by_id
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def user_finder_by_id @user_finder_by_id end |
#user_finder_by_token ⇒ Object
Returns the value of attribute user_finder_by_token
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def user_finder_by_token @user_finder_by_token end |
#user_initializer ⇒ Object
Returns the value of attribute user_initializer
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def user_initializer @user_initializer end |
#user_name_method ⇒ Object
Returns the value of attribute user_name_method
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def user_name_method @user_name_method end |
#validate_registration ⇒ Object
Returns the value of attribute validate_registration
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def validate_registration @validate_registration end |
#verify_view ⇒ Object
Returns the value of attribute verify_view
3 4 5 |
# File 'lib/searls/auth/config.rb', line 3 def verify_view @verify_view end |
Instance Method Details
#resolve(option, *args) ⇒ Object
Get values from values that might be procs
49 50 51 52 53 54 55 |
# File 'lib/searls/auth/config.rb', line 49 def resolve(option, *args) if self[option].respond_to?(:call) self[option].call(*args) else self[option] end end |