class DifficultCustomer::Defaults
This class provices defaults for each message priority.
Public Instance Methods
high()
click to toggle source
# 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()
click to toggle source
# 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()
click to toggle source
# 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