Class: DifficultCustomer::Defaults
- Inherits:
-
Object
- Object
- DifficultCustomer::Defaults
- Defined in:
- lib/difficult_customer/defaults.rb
Overview
This class provices defaults for each message priority.
Instance Method Summary collapse
Instance Method Details
#high ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/difficult_customer/defaults.rb', line 27 def high { 'priority' => 'high', 'appearance' => 'page', 'colour' => 'red', 'text' => 'This gem is not configured properly.', 'frequency' => 'every-2-requests' } end |
#low ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/difficult_customer/defaults.rb', line 6 def low { 'priority' => 'low', 'appearance' => 'banner', 'position' => 'bottom', 'colour' => 'yellow', 'text' => 'This gem is not configured properly.', 'frequency' => 'after-sign-in' } end |
#medium ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/difficult_customer/defaults.rb', line 17 def medium { 'priority' => 'medium', 'appearance' => 'alert', 'colour' => 'orange', 'text' => 'This gem is not configured properly.', 'frequency' => 'every-10-requests' } end |