Sha256: 3ed48cb668dee2d638ff428bb857f551268031423936aa701ec2961544a4b9f1
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-0.4.1 | lib/meducation_sdk/resources/group_invite.rb |
meducation_sdk-0.4.0 | lib/meducation_sdk/resources/group_invite.rb |