This pull request will add the Conditionable trait to the SlackMessage class. By adding this trait the methods when and unless can be used to create a Slack notification based on conditions. The same trait is used in the MailMessage class. This will allow you to create, for example, Slack and mail notifications/messages based on the same conditions.
This pull request will add the
Conditionable
trait to theSlackMessage
class. By adding this trait the methodswhen
andunless
can be used to create a Slack notification based on conditions. The same trait is used in theMailMessage
class. This will allow you to create, for example, Slack and mail notifications/messages based on the same conditions.