Class: MeducationSDK::Message

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

Direct Known Subclasses

MessageMock

Constant Summary

Constants included from Helpers

Helpers::SDK_TO_SPI_MAPPINGS

Instance Method Summary collapse

Methods inherited from Resource

#created_at, spi_type=, #updated_at

Methods included from Helpers

#sdk_class_for, #sdk_type_for, #spi_type_for

Instance Method Details

#fromObject



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

def from
  @user ||= User.find(from_id)
end

#threadObject



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

def thread
  @thread ||= MessageThread.find(thread_id)
end