Sha256: d22c60f97d6527268993cb48e80d5e70573d4d4e3f80907d35b19c6a53a5b402
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 Bytes
Contents
module MeducationSDK class GroupDiscussion < Loquor::Resource self.path = "/group_discussions" def group @group ||= Group.find(group_id) end def started_by @started_by ||= User.find(started_by_id) end def posts @posts = GroupDiscussionPost.where(discussion_id: id) end end class GroupDiscussionMock < GroupDiscussion extend Loquor::ResourceMock self.attributes = { id: 1, group_id: 8, started_by: 7 } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-0.4.1 | lib/meducation_sdk/resources/group_discussion.rb |
meducation_sdk-0.4.0 | lib/meducation_sdk/resources/group_discussion.rb |