Sha256: 042bf1a9f7aaaf09c5aeb5bfe19dfd93f807515e3468240da27d7a56d0204bd6

Contents?: true

Size: 373 Bytes

Versions: 10

Compression:

Stored size: 373 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

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.4 lib/slack/messages/message.rb
slack-ruby-client-0.14.3 lib/slack/messages/message.rb
slack-ruby-client-0.14.2 lib/slack/messages/message.rb
slack-ruby-client-0.14.1 lib/slack/messages/message.rb
slack-ruby-client-0.14.0 lib/slack/messages/message.rb
slack-ruby-client-0.13.1 lib/slack/messages/message.rb
slack-ruby-client-0.13.0 lib/slack/messages/message.rb
slack-ruby-client-0.12.0 lib/slack/messages/message.rb
slack-ruby-client-0.11.1 lib/slack/messages/message.rb
slack-ruby-client-0.11.0 lib/slack/messages/message.rb