Sha256: e2d1e20cd50cab970325b99d32a9e62bab056c2c29d09b74c9f4f5166378d701

Contents?: true

Size: 378 Bytes

Versions: 6

Compression:

Stored size: 378 Bytes

Contents

module Slack
  module Messages
    class Message < Hashie::Mash
      def presence
        super['presence']
      end

      def to_s
        keys.sort_by(&:to_s).map do |key|
          "#{key}=#{self[key]}"
        end.join(', ')
      end

      private

      # see https://github.com/intridea/hashie/issues/394
      def log_built_in_message(*)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-client-0.10.0 lib/slack/messages/message.rb
slack-ruby-client-0.9.1 lib/slack/messages/message.rb
slack-ruby-client-0.9.0 lib/slack/messages/message.rb
slack-ruby-client-0.8.1 lib/slack/messages/message.rb
slack-ruby-client-0.8.0 lib/slack/messages/message.rb
slack-ruby-client-0.7.9 lib/slack/messages/message.rb