Sha256: 81b7431e1a062dc1219afb0e505f1de9dd82eaadb5b1097da83b5c6024f928a2

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

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

    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

1 entries across 1 versions & 1 rubygems

Version Path
meducation_sdk-0.3.3 lib/meducation_sdk/resources/mesh_heading.rb