Class: Slack::Messages::Message
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Slack::Messages::Message
- Defined in:
- lib/slack/messages/message.rb
Instance Method Summary collapse
Instance Method Details
#presence ⇒ Object
4 5 6 |
# File 'lib/slack/messages/message.rb', line 4 def presence super['presence'] end |
#to_s ⇒ Object
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 |