def message_to_slack(channel:, options: {})
      @caller_method_name = caller[0][/`([^']*)'/, 1]
      options = apply_defaults(options)
      message = nil
      ActiveSupport::Notifications.instrument('message_to_slack.action_messenger', channel: channel, body: options[:text]) do
        message = slack_client.message(channel, options)
      end
      message
    ensure
     self.deliveries << DeliveryLog.new(__method__, channel, message)
    end
def message_to_slack(channel:, options: {})
      @caller_method_name = caller[0][/`([^']*)'/, 1]
      options = apply_defaults(options)
      message = nil
      ActiveSupport::Notifications.instrument('message_to_slack.action_messenger', channel: channel, body: options[:text]) do
        message = slack_client.message(channel, options)
      end
      message
    ensure
     self.deliveries << DeliveryLog.new(__method__, channel, message)
    end
message to slack

 @param [String] channel slack channel.
   ex. #general
 @param [Hash] options Slack API Request Options
  ex. https://api.slack.com/methods/chat.postMessage

 ex. message_to_slack(channel: '#general', options: {text: 'sample'})