Sha256: 380433541168e9c1f6644275d23c73e7931a54620991a1283b37f542bff3cae2

Contents?: true

Size: 399 Bytes

Versions: 37

Compression:

Stored size: 399 Bytes

Contents

module MeducationSDK
  class MessageThread < Resource
    self.path = "/message_threads"

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

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

  class MessageThreadMock < MessageThread
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1
    }
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-1.6.16 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/message_thread.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/message_thread.rb