Sha256: 3a1e285386b3b9b9da82ce0fde071aef5d5953bba996d064f37aebedfbb50876
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
module MeducationSDK class PremiumTutorial < Loquor::Resource self.path = "/premium_tutorials" def user @user ||= User.find(user_id) end def comments @comments ||= Comment.where(id: comment_ids) end end class PremiumTutorialMock < PremiumTutorial extend Loquor::ResourceMock self.attributes = { id: 1, title: "Al's Medicine Tutorial", user_id: 5, comment_ids: [4,5,6] } end end
Version data entries
6 entries across 6 versions & 1 rubygems