Module: Usps::Support::Models::Toast::Reserved
- Defined in:
- lib/usps/support/models/toast.rb
Overview
Reserved standard Toast configurations
Constant Summary collapse
- IDS =
{ restarting: 10_001 }.freeze
Class Method Summary collapse
Class Method Details
.restarted ⇒ Object
79 80 81 82 83 84 |
# File 'lib/usps/support/models/toast.rb', line 79 def self.restarted Toast.notice( title: 'Server Restarted', body: 'The server has completed its restart. You can resume working.' ) end |
.restarting ⇒ Object
69 70 71 72 73 74 75 76 77 |
# File 'lib/usps/support/models/toast.rb', line 69 def self.restarting Toast.notice( title: 'SERVER WILL RESTART SOON', body: "Please do not attempt to make any changes for a moment.\n" \ "We'll let you know when the server's back up.", timeout: 0, id: IDS[:restarting] ) end |