Class: MeducationSDK::MeshHeading
- Defined in:
- lib/meducation_sdk/resources/mesh_heading.rb
Direct Known Subclasses
Constant Summary
Constants included from Helpers
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_ids ⇒ Object
9 10 11 |
# File 'lib/meducation_sdk/resources/mesh_heading.rb', line 9 def parent_ids @data[:parents].map { |p| p['id'] } end |
#parents ⇒ Object
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 |