Class: MeducationSDK::MeshHeading
- Inherits:
-
Loquor::Resource
- Object
- Loquor::Resource
- MeducationSDK::MeshHeading
- Defined in:
- lib/meducation_sdk/resources/mesh_heading.rb
Direct Known Subclasses
Instance Method Summary collapse
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 |