Class: Searls::Auth::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/searls/auth/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_login_successObject

Returns the value of attribute after_login_success

Returns:

  • (Object)

    the current value of after_login_success



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def 
  @after_login_success
end

#app_nameObject

Returns the value of attribute app_name

Returns:

  • (Object)

    the current value of app_name



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def app_name
  @app_name
end

#app_urlObject

Returns the value of attribute app_url

Returns:

  • (Object)

    the current value of app_url



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def app_url
  @app_url
end

#default_redirect_path_after_loginObject

Returns the value of attribute default_redirect_path_after_login

Returns:

  • (Object)

    the current value of default_redirect_path_after_login



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def 
  @default_redirect_path_after_login
end

#email_background_colorObject

Returns the value of attribute email_background_color

Returns:

  • (Object)

    the current value of 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_pathObject

Returns the value of attribute email_banner_image_path

Returns:

  • (Object)

    the current value of email_banner_image_path



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def email_banner_image_path
  @email_banner_image_path
end

#email_button_colorObject

Returns the value of attribute email_button_color

Returns:

  • (Object)

    the current value of email_button_color



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def email_button_color
  @email_button_color
end

#flash_error_after_login_attempt_unknown_emailObject

Returns the value of attribute flash_error_after_login_attempt_unknown_email

Returns:

  • (Object)

    the current value of 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
end

#flash_error_after_register_attemptObject

Returns the value of attribute flash_error_after_register_attempt

Returns:

  • (Object)

    the current value of 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_limitObject

Returns the value of attribute flash_error_after_verify_attempt_exceeds_limit

Returns:

  • (Object)

    the current value of 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_codeObject

Returns the value of attribute flash_error_after_verify_attempt_incorrect_short_code

Returns:

  • (Object)

    the current value of 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

Returns the value of attribute flash_error_after_verify_attempt_invalid_link

Returns:

  • (Object)

    the current value of 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_attemptObject

Returns the value of attribute flash_notice_after_login_attempt

Returns:

  • (Object)

    the current value of flash_notice_after_login_attempt



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def 
  @flash_notice_after_login_attempt
end

#flash_notice_after_logoutObject

Returns the value of attribute flash_notice_after_logout

Returns:

  • (Object)

    the current value of 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_registrationObject

Returns the value of attribute flash_notice_after_registration

Returns:

  • (Object)

    the current value of 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_verificationObject

Returns the value of attribute flash_notice_after_verification

Returns:

  • (Object)

    the current value of 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

#layoutObject

Returns the value of attribute layout

Returns:

  • (Object)

    the current value of layout



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def layout
  @layout
end

#login_viewObject

Returns the value of attribute login_view

Returns:

  • (Object)

    the current value of login_view



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def 
  @login_view
end

#mail_layoutObject

Returns the value of attribute mail_layout

Returns:

  • (Object)

    the current value of mail_layout



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def mail_layout
  @mail_layout
end

#mail_login_template_nameObject

Returns the value of attribute mail_login_template_name

Returns:

  • (Object)

    the current value of mail_login_template_name



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def 
  @mail_login_template_name
end

#mail_login_template_pathObject

Returns the value of attribute mail_login_template_path

Returns:

  • (Object)

    the current value of mail_login_template_path



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def 
  @mail_login_template_path
end

#max_allowed_short_code_attemptsObject

Returns the value of attribute max_allowed_short_code_attempts

Returns:

  • (Object)

    the current value of 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_logoutObject

Returns the value of attribute preserve_session_keys_after_logout

Returns:

  • (Object)

    the current value of 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_registerObject

Returns the value of attribute redirect_path_after_register

Returns:

  • (Object)

    the current value of 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_viewObject

Returns the value of attribute register_view

Returns:

  • (Object)

    the current value of register_view



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def register_view
  @register_view
end

#support_email_addressObject

Returns the value of attribute support_email_address

Returns:

  • (Object)

    the current value of support_email_address



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def support_email_address
  @support_email_address
end

#token_expiry_minutesObject

Returns the value of attribute token_expiry_minutes

Returns:

  • (Object)

    the current value of token_expiry_minutes



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def token_expiry_minutes
  @token_expiry_minutes
end

#token_generatorObject

Returns the value of attribute token_generator

Returns:

  • (Object)

    the current value of token_generator



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def token_generator
  @token_generator
end

#user_finder_by_emailObject

Returns the value of attribute user_finder_by_email

Returns:

  • (Object)

    the current value of 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_idObject

Returns the value of attribute user_finder_by_id

Returns:

  • (Object)

    the current value of 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_tokenObject

Returns the value of attribute user_finder_by_token

Returns:

  • (Object)

    the current value of 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_initializerObject

Returns the value of attribute user_initializer

Returns:

  • (Object)

    the current value of user_initializer



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def user_initializer
  @user_initializer
end

#user_name_methodObject

Returns the value of attribute user_name_method

Returns:

  • (Object)

    the current value of user_name_method



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def user_name_method
  @user_name_method
end

#validate_registrationObject

Returns the value of attribute validate_registration

Returns:

  • (Object)

    the current value of validate_registration



3
4
5
# File 'lib/searls/auth/config.rb', line 3

def validate_registration
  @validate_registration
end

#verify_viewObject

Returns the value of attribute verify_view

Returns:

  • (Object)

    the current value of 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