Class: Pollett::Configuration
- Inherits:
-
Object
- Object
- Pollett::Configuration
- Defined in:
- lib/pollett/configuration.rb
Instance Attribute Summary collapse
-
#from_email ⇒ Object
Returns the value of attribute from_email.
-
#minimum_password_length ⇒ Object
Returns the value of attribute minimum_password_length.
-
#parent_mailer ⇒ Object
Returns the value of attribute parent_mailer.
-
#reset_url ⇒ Object
Returns the value of attribute reset_url.
-
#send_welcome_email ⇒ Object
Returns the value of attribute send_welcome_email.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_model ⇒ Object
Returns the value of attribute user_model.
-
#whitelist ⇒ Object
Returns the value of attribute whitelist.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #user_model_name ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 26 27 28 |
# File 'lib/pollett/configuration.rb', line 20 def initialize @user_model = ::User @minimum_password_length = 8 @send_welcome_email = true @parent_mailer = ::ApplicationMailer @reset_url = ->(token) { "https://example.com/#{token}/reset" } @whitelist = [] @timeout = 2.weeks end |
Instance Attribute Details
#from_email ⇒ Object
Returns the value of attribute from_email.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def from_email @from_email end |
#minimum_password_length ⇒ Object
Returns the value of attribute minimum_password_length.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def minimum_password_length @minimum_password_length end |
#parent_mailer ⇒ Object
Returns the value of attribute parent_mailer.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def parent_mailer @parent_mailer end |
#reset_url ⇒ Object
Returns the value of attribute reset_url.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def reset_url @reset_url end |
#send_welcome_email ⇒ Object
Returns the value of attribute send_welcome_email.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def send_welcome_email @send_welcome_email end |
#timeout ⇒ Object
Returns the value of attribute timeout.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def timeout @timeout end |
#user_model ⇒ Object
Returns the value of attribute user_model.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def user_model @user_model end |
#whitelist ⇒ Object
Returns the value of attribute whitelist.
11 12 13 |
# File 'lib/pollett/configuration.rb', line 11 def whitelist @whitelist end |
Instance Method Details
#user_model_name ⇒ Object
30 31 32 |
# File 'lib/pollett/configuration.rb', line 30 def user_model_name "::#{user_model.name}" end |