helpers/payload.rb
# Formats a payload for sending via Slack
#
# @return [Hash] Our Payload in Slack "attachment" format.
Formats a payload for sending via Slack
Formats a payload for sending via Slack
def format_for_slack
            fields = [
                {
                    'title': 'Payload',
                    'value': @payload,
                    'short': false,
                },
                {
                    'title': 'Target',
                    'value': @target,
                    'short': false,
                }
            ]
            return Slack::format_attachment(summary, fields, Slack::LEVEL_HIGH)
        end
def format_for_slack fields = [ { 'title' : 'Payload' , 'value' : @payload , 'short' : false , } , { 'title' : 'Target' , 'value' : @target , 'short' : false , } ] return Slack :: format_attachment ( summary , fields , Slack :: LEVEL_HIGH ) end
Formats a payload for sending via Slack
Formats a payload for sending via Slack
Our Payload in Slack "attachment" format.
Our Payload in Slack " attachment " format .
Hash