Class: BootstrapFeedbacker::Settings
- Inherits:
-
Object
- Object
- BootstrapFeedbacker::Settings
- Defined in:
- lib/bootstrap_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.
-
#modal_content_id ⇒ Object
Returns the value of attribute modal_content_id.
-
#modal_id ⇒ Object
Returns the value of attribute modal_id.
-
#user_class ⇒ Object
Returns the value of attribute user_class.
-
#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.
7 8 9 10 11 12 13 14 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 7 def initialize self.email_to = '' self.email_prefix = '[FEEDBACKER]' self.modal_content_id = 'bootstrap_feedbacker_remark_modal_content' self.modal_id = 'bootstrap_feedbacker_remark_modal' self.user_class = 'User' self.user_name_method = :name end |
Instance Attribute Details
#email_prefix ⇒ Object
Returns the value of attribute email_prefix.
5 6 7 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 5 def email_prefix @email_prefix end |
#email_to ⇒ Object
Returns the value of attribute email_to.
5 6 7 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 5 def email_to @email_to end |
#modal_content_id ⇒ Object
Returns the value of attribute modal_content_id.
5 6 7 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 5 def modal_content_id @modal_content_id end |
#modal_id ⇒ Object
Returns the value of attribute modal_id.
5 6 7 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 5 def modal_id @modal_id end |
#user_class ⇒ Object
Returns the value of attribute user_class.
5 6 7 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 5 def user_class @user_class end |
#user_name_method ⇒ Object
Returns the value of attribute user_name_method.
5 6 7 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 5 def user_name_method @user_name_method end |
Instance Method Details
#update {|_self| ... } ⇒ Object
16 17 18 |
# File 'lib/bootstrap_feedbacker/settings.rb', line 16 def update yield self end |