Sha256: a90ebe8b82bb4802fd10bae20a09496673efdfbdcdba281d1eb07de0692979d0
Contents?: true
Size: 470 Bytes
Versions: 23
Compression:
Stored size: 470 Bytes
Contents
module MeducationSDK class Notification < Loquor::Resource self.path = "/notifications" def item @item ||= "MeducationSDK::#{item_type}".constantize.find(item_id) end def user @user ||= User.find(user_id) end end class NotificationMock < Notification extend Loquor::ResourceMock self.attributes = { id: 1, action: "comment_new", user_id: 5, item_id: 3, item_type: "Comment" } end end
Version data entries
23 entries across 23 versions & 1 rubygems