Class: Mori::Configuration
- Inherits:
-
Object
- Object
- Mori::Configuration
- Defined in:
- lib/mori/configuration.rb
Instance Attribute Summary collapse
-
#account_database ⇒ Object
Returns the value of attribute account_database.
-
#after_login_url ⇒ Object
Returns the value of attribute after_login_url.
-
#after_logout_url ⇒ Object
Returns the value of attribute after_logout_url.
-
#after_signup_url ⇒ Object
Returns the value of attribute after_signup_url.
-
#allow_sign_up ⇒ Object
Returns the value of attribute allow_sign_up.
-
#application_name ⇒ Object
Returns the value of attribute application_name.
-
#from_email ⇒ Object
Returns the value of attribute from_email.
Instance Method Summary collapse
- #allow_sign_up? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 |
# File 'lib/mori/configuration.rb', line 12 def initialize @from_email = "[email protected]" @application_name = "Mori" @allow_sign_up = true @after_signup_url = '/' @after_login_url = '/' @after_logout_url = '/' end |
Instance Attribute Details
#account_database ⇒ Object
Returns the value of attribute account_database.
3 4 5 |
# File 'lib/mori/configuration.rb', line 3 def account_database @account_database end |
#after_login_url ⇒ Object
Returns the value of attribute after_login_url.
3 4 5 |
# File 'lib/mori/configuration.rb', line 3 def after_login_url @after_login_url end |
#after_logout_url ⇒ Object
Returns the value of attribute after_logout_url.
3 4 5 |
# File 'lib/mori/configuration.rb', line 3 def after_logout_url @after_logout_url end |
#after_signup_url ⇒ Object
Returns the value of attribute after_signup_url.
3 4 5 |
# File 'lib/mori/configuration.rb', line 3 def after_signup_url @after_signup_url end |
#allow_sign_up ⇒ Object
Returns the value of attribute allow_sign_up.
3 4 5 |
# File 'lib/mori/configuration.rb', line 3 def allow_sign_up @allow_sign_up end |
#application_name ⇒ Object
Returns the value of attribute application_name.
3 4 5 |
# File 'lib/mori/configuration.rb', line 3 def application_name @application_name end |
#from_email ⇒ Object
Returns the value of attribute from_email.
3 4 5 |
# File 'lib/mori/configuration.rb', line 3 def from_email @from_email end |
Instance Method Details
#allow_sign_up? ⇒ Boolean
20 21 22 |
# File 'lib/mori/configuration.rb', line 20 def allow_sign_up? allow_sign_up end |