Sha256: d73e8b64ed6bc9092976fc5e5c92efd1689502c2831baef11e4dfa99d50e7b85

Contents?: true

Size: 347 Bytes

Versions: 16

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true
module Notion
  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

16 entries across 16 versions & 1 rubygems

Version Path
notion-ruby-client-1.2.2 lib/notion/messages/message.rb
notion-ruby-client-1.2.1 lib/notion/messages/message.rb
notion-ruby-client-1.2.0 lib/notion/messages/message.rb
notion-ruby-client-1.1.0 lib/notion/messages/message.rb
notion-ruby-client-1.0.0 lib/notion/messages/message.rb
notion-ruby-client-1.0.0.pre.beta2 lib/notion/messages/message.rb
notion-ruby-client-1.0.0.pre.beta1 lib/notion/messages/message.rb
notion-ruby-client-0.1.0.pre.beta1 lib/notion/messages/message.rb
notion-ruby-client-0.0.8 lib/notion/messages/message.rb
notion-ruby-client-0.0.7 lib/notion/messages/message.rb
notion-ruby-client-0.0.6 lib/notion/messages/message.rb
notion-ruby-client-0.0.5 lib/notion/messages/message.rb
notion-ruby-client-0.0.4 lib/notion/messages/message.rb
notion-ruby-client-0.0.3 lib/notion/messages/message.rb
notion-ruby-client-0.0.2 lib/notion/messages/message.rb
notion-ruby-client-0.0.1 lib/notion/messages/message.rb