Class: Slack::Messages::Message

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

Instance Method Summary collapse

Instance Method Details

#presenceObject



4
5
6
# File 'lib/slack/messages/message.rb', line 4

def presence
  super['presence']
end

#to_sObject



8
9
10
11
12
# File 'lib/slack/messages/message.rb', line 8

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