Sha256: f8278e2d91c6d4d11b4d62f3f0e6bb7621cf9a363fb4869370d649366a5e04b6

Contents?: true

Size: 492 Bytes

Versions: 37

Compression:

Stored size: 492 Bytes

Contents

module MeducationSDK

  class CollectionSection < Resource

    self.path = "/collection_sections"

    def topics
      @topics ||= Section.where(section_id: id)
    end

  end

  class CollectionSectionMock < Collection
    extend Loquor::ResourceMock

    self.attributes = {
      id: 463728,
      title: 'This is a mock collection section',
      description: 'This is a sample description',
      collection_id: 1,
      topic_ids: [1,2,4],
      resource_ids: [9,8]
    }

  end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.6.16 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/collection_section.rb