Class: BootstrapFeedbacker::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/bootstrap_feedbacker/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSettings

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_prefixObject

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_toObject

Returns the value of attribute email_to.



5
6
7
# File 'lib/bootstrap_feedbacker/settings.rb', line 5

def email_to
  @email_to
end

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

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_classObject

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_methodObject

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

Yields:

  • (_self)

Yield Parameters:



16
17
18
# File 'lib/bootstrap_feedbacker/settings.rb', line 16

def update
  yield self
end