Class: Feedbacker::Settings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSettings

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_prefixObject

Returns the value of attribute email_prefix.



3
4
5
# File 'lib/feedbacker/settings.rb', line 3

def email_prefix
  @email_prefix
end

#email_toObject

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_methodObject

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

Yields:

  • (_self)

Yield Parameters:



11
12
13
# File 'lib/feedbacker/settings.rb', line 11

def update
  yield self
end