Class | God::Contact |
In: |
lib/god/contact.rb
|
Parent: | Object |
group | [RW] | |
info | [RW] | |
name | [RW] |
Normalize the given notify specification into canonical form.
+spec+ is the notify spec as a String, Array of Strings, or Hash
Canonical form looks like: {:contacts => [‘fred’, ‘john’], :priority => ‘1’, :category => ‘awesome’} Where :contacts will be present and point to an Array of Strings. Both :priority and :category may not be present but if they are, they will each contain a single String.
Returns normalized notify spec Raises ArgumentError on invalid spec (message contains details)