Sha256: d3f1846e85664fc643d663e8e3388c13a7b8223031b96921ba028f940668fdaf
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module MeducationSDK class Message < Loquor::Resource self.path = "/message_threads" def from @user ||= User.find(from_id) end def thread @thread ||= MessageThread.find(thread_id) end end class MessageMock < Message extend Loquor::ResourceMock self.attributes = { id: 1, thread_id: 20, from_id: 10 } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-0.4.1 | lib/meducation_sdk/resources/message.rb |
meducation_sdk-0.4.0 | lib/meducation_sdk/resources/message.rb |