Class: Notion::Messages::Message

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/notion/messages/message.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



5
6
7
8
9
# File 'lib/notion/messages/message.rb', line 5

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