Sha256: 67246a48be156a1e5438ee8148c7aa52aa013bc9dfb9949761199b8916da4fe9

Contents?: true

Size: 500 Bytes

Versions: 11

Compression:

Stored size: 500 Bytes

Contents

module MeducationSDK

  class CollectionSection < Loquor::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

11 entries across 11 versions & 1 rubygems

Version Path
meducation_sdk-1.4.3 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.4.2 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.4.1 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.4.0 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.3.0 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.2.6 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.2.5 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.2.4 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.2.3 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.2.2 lib/meducation_sdk/resources/collection_section.rb
meducation_sdk-1.2.1 lib/meducation_sdk/resources/collection_section.rb