Sha256: 5bd38f613330b0aabfe6be5be39563633865272d32c118f2c3987baeccf5bbc4
Contents?: true
Size: 551 Bytes
Versions: 11
Compression:
Stored size: 551 Bytes
Contents
module MeducationSDK class Collection < Loquor::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
11 entries across 11 versions & 1 rubygems