Sha256: 6f2a066170cec8dc4d61ae157af02062c87084b13e04091857488511b6949fa9

Contents?: true

Size: 347 Bytes

Versions: 11

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true
module Slack
  module Messages
    class Message < Hashie::Mash
      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

11 entries across 11 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 lib/slack/messages/message.rb
slack-ruby-client-2.3.0 lib/slack/messages/message.rb
slack-ruby-client-2.2.0 lib/slack/messages/message.rb
slack-ruby-client-2.1.0 lib/slack/messages/message.rb
slack-ruby-client-2.0.0 lib/slack/messages/message.rb
slack-ruby-client-1.1.0 lib/slack/messages/message.rb
slack-ruby-client-1.0.0 lib/slack/messages/message.rb
slack-ruby-client-0.17.0 lib/slack/messages/message.rb
slack-ruby-client-0.16.0 lib/slack/messages/message.rb
slack-ruby-client-0.15.1 lib/slack/messages/message.rb
slack-ruby-client-0.15.0 lib/slack/messages/message.rb