Sha256: 4c2242f7750c0e7bd1943b2b82b0a2f5d43262a7004fa82fdcc040c62d919750

Contents?: true

Size: 344 Bytes

Versions: 5

Compression:

Stored size: 344 Bytes

Contents

module MeducationSDK
  class MeshHeading < Loquor::Resource
    self.path = "/partners"

    def parents
      MeshHeading.where(id: parent_ids)
    end
  end

  class MeshHeadingMock < MeshHeading
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      name: "Some Mesh Heading",
      parent_ids: [2,3,4]
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
meducation_sdk-0.3.2 lib/meducation_sdk/resources/mesh_heading.rb
meducation_sdk-0.3.1 lib/meducation_sdk/resources/mesh_heading.rb
meducation_sdk-0.3.0 lib/meducation_sdk/resources/mesh_heading.rb
meducation_sdk-0.2.0 lib/meducation_sdk/resources/mesh_heading.rb
meducation_sdk-0.1.0 lib/meducation_sdk/resources/mesh_heading.rb