Class: MeducationSDK::MeshHeading

Inherits:
Resource
  • Object
show all
Defined in:
lib/meducation_sdk/resources/mesh_heading.rb

Direct Known Subclasses

MeshHeadingMock

Constant Summary

Constants included from Helpers

Helpers::SDK_TO_SPI_MAPPINGS

Instance Method Summary collapse

Methods inherited from Resource

#created_at, spi_type=, #updated_at

Methods included from Helpers

#sdk_class_for, #sdk_type_for, #spi_type_for

Instance Method Details

#parent_idsObject



9
10
11
# File 'lib/meducation_sdk/resources/mesh_heading.rb', line 9

def parent_ids
  @data[:parents].map { |p| p['id'] }
end

#parentsObject



5
6
7
# File 'lib/meducation_sdk/resources/mesh_heading.rb', line 5

def parents
  parent_ids.map { |p_id| MeshHeading.find(p_id) }
end