Exception: Gratitude::TipUpdateError
- Inherits:
-
StandardError
- Object
- StandardError
- Gratitude::TipUpdateError
- Defined in:
- lib/gratitude/error.rb
Instance Method Summary collapse
-
#initialize(usernames) ⇒ TipUpdateError
constructor
A new instance of TipUpdateError.
Constructor Details
#initialize(usernames) ⇒ TipUpdateError
Returns a new instance of TipUpdateError.
21 22 23 24 25 26 |
# File 'lib/gratitude/error.rb', line 21 def initialize(usernames) combined_usernames = usernames.join(", ") super( "There was an error updating the tip(s) for the following user(s): "\ "#{combined_usernames}.") end |