Sha256: 7097d7ba1a8413fd41ed193aac9ff01139a144cb766ab0225f49046a06245590

Contents?: true

Size: 235 Bytes

Versions: 3

Compression:

Stored size: 235 Bytes

Contents

require_relative 'base'

module Capistrano::Dingtalk::Messaging
  class Text < Base
    def build_hash(action)
      {
        msgtype: "text",
        text: {
          content: message_for(action)
        }
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-dingtalk-0.1.2 lib/capistrano/dingtalk/messaging/text.rb
capistrano-dingtalk-0.1.1 lib/capistrano/dingtalk/messaging/text.rb
capistrano-dingtalk-0.1.0 lib/capistrano/dingtalk/messaging/text.rb