Sha256: 07e06e6bf2a90e171827cd4b6eb48580e8cc42c4cb1ecd022f6f213368309fa9
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
module MeducationSDK class CollectionTopic < Loquor::Resource self.path = "/collection_topics" def user @user ||= User.find(user_id) end def comments @comments ||= Comment.where(id: comment_ids) end end class CollectionTopicMock < CollectionTopic extend Loquor::ResourceMock self.attributes = { id: 1, title: "Al's Medicine Tutorial", comment_ids: [4,5,6], rating: 10, views_in_last_30_days: 30, views_in_last_60_days: 60 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-1.2.0 | lib/meducation_sdk/resources/collection_topic.rb |