Sha256: da9770a31e266112937664a28beb4f51f180b6afd7744ade10d736f493ed5cb3

Contents?: true

Size: 322 Bytes

Versions: 9

Compression:

Stored size: 322 Bytes

Contents

class SlackLogDevice

  class Formatter

    class Message < String

      attr_reader :icon_emoji

      def initialize(text, icon_emoji: nil)
        super(text)
        self.icon_emoji = icon_emoji
      end

      def icon_emoji=(value)
        @icon_emoji = value.presence.try(&:strip)
      end

    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack_log_device-6.1.0 lib/slack_log_device/formatter/message.rb
slack_log_device-6.0.1 lib/slack_log_device/formatter/message.rb
slack_log_device-6.0.0 lib/slack_log_device/formatter/message.rb
slack_log_device-5.1.5 lib/slack_log_device/formatter/message.rb
slack_log_device-5.1.4 lib/slack_log_device/formatter/message.rb
slack_log_device-5.1.3 lib/slack_log_device/formatter/message.rb
slack_log_device-5.1.2 lib/slack_log_device/formatter/message.rb
slack_log_device-5.1.1 lib/slack_log_device/formatter/message.rb
slack_log_device-5.1.0 lib/slack_log_device/formatter/message.rb