module MeducationSDK class GroupInvite < Loquor::Resource self.path = "/group_invites" def group @group ||= Group.find(group_id) end def invited_by @invited_by ||= User.find(invited_by_id) end def user @user ||= User.find(user_id) end end class GroupInviteMock < GroupInvite extend Loquor::ResourceMock self.attributes = { id: 1, group_id: 8, user_id: 8, invited_by_id: 12, message: "", email: "" } end end