Class: Feedbacker::Settings
- Inherits:
-
Object
- Object
- Feedbacker::Settings
- Defined in:
- lib/feedbacker/settings.rb
Instance Attribute Summary collapse
-
#email_prefix ⇒ Object
Returns the value of attribute email_prefix.
-
#email_to ⇒ Object
Returns the value of attribute email_to.
-
#user_name_method ⇒ Object
Returns the value of attribute user_name_method.
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
- #update {|_self| ... } ⇒ Object
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
5 6 7 8 9 |
# File 'lib/feedbacker/settings.rb', line 5 def initialize self.email_to = '' self.email_prefix = '[FEEDBACKER]' self.user_name_method = :name end |
Instance Attribute Details
#email_prefix ⇒ Object
Returns the value of attribute email_prefix.
3 4 5 |
# File 'lib/feedbacker/settings.rb', line 3 def email_prefix @email_prefix end |
#email_to ⇒ Object
Returns the value of attribute email_to.
3 4 5 |
# File 'lib/feedbacker/settings.rb', line 3 def email_to @email_to end |
#user_name_method ⇒ Object
Returns the value of attribute user_name_method.
3 4 5 |
# File 'lib/feedbacker/settings.rb', line 3 def user_name_method @user_name_method end |
Instance Method Details
#update {|_self| ... } ⇒ Object
11 12 13 |
# File 'lib/feedbacker/settings.rb', line 11 def update yield self end |