Sha256: 79d14028d3606d41ed373a51cb55c3c59d4ae978b6978e70adb44e9a85e45d40
Contents?: true
Size: 543 Bytes
Versions: 22
Compression:
Stored size: 543 Bytes
Contents
module MeducationSDK class Collection < Resource self.path = "/collections" def sections @sections ||= Section.where(collection_id: id) end end class CollectionMock < Collection extend Loquor::ResourceMock self.attributes = { id: 7, title: 'This is a mock collection', description: 'This is a sample description', market_description: 'This is a sample market description', section_ids: [2,3,4,5,6], topic_ids: [1,2,3,4], resource_ids: [9,8,7,6] } end end
Version data entries
22 entries across 22 versions & 1 rubygems