Class: MeducationSDK::MessageThread

Inherits:
Loquor::Resource
  • Object
show all
Defined in:
lib/meducation_sdk/resources/message_thread.rb

Direct Known Subclasses

MessageThreadMock

Instance Method Summary collapse

Instance Method Details

#contributorsObject



5
6
7
# File 'lib/meducation_sdk/resources/message_thread.rb', line 5

def contributors
  @contributors ||= MessageThreadContributor.where(thread_id: id)
end

#messagesObject



9
10
11
# File 'lib/meducation_sdk/resources/message_thread.rb', line 9

def messages
  @messages ||= Message.where(thread_id: id)
end