Class: MeducationSDK::Message
- Defined in:
- lib/meducation_sdk/resources/message.rb
Direct Known Subclasses
Constant Summary
Constants included from Helpers
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
#from ⇒ Object
5 6 7 |
# File 'lib/meducation_sdk/resources/message.rb', line 5 def from @user ||= User.find(from_id) end |
#thread ⇒ Object
9 10 11 |
# File 'lib/meducation_sdk/resources/message.rb', line 9 def thread @thread ||= MessageThread.find(thread_id) end |