Class: MessageThread

Inherits:
Object
  • Object
show all
Defined in:
src/models/message_thread.rb

Overview

Describes and provides operations on a particular Slack message thread

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tsString (readonly) Also known as: id

Returns the thread id

Returns:

  • (String)

    the thread id



4
5
6
# File 'src/models/message_thread.rb', line 4

def ts
  @ts
end

Instance Method Details

#==(other) ⇒ Boolean Also known as: eql?

Compare threads by ID

Parameters:

Returns:

  • (Boolean)

    The comparison result.



30
31
32
# File 'src/models/message_thread.rb', line 30

def ==(other)
  @ts == other.ts
end

#messagesArray<Message>

TODO:

Implement

Note:

This method's result is not cached. A request to the Slack API is made each time it is called.

Retrieve all messages in this thread

Returns:

  • (Array<Message>)

    The messages in this thread. Includes the thread starter message.



22
23
24
# File 'src/models/message_thread.rb', line 22

def messages
  raise 'Not implemented'
end