Class: Commons::Integrity::BoundaryIndexEntry
- Inherits:
-
Object
- Object
- Commons::Integrity::BoundaryIndexEntry
- Defined in:
- lib/commons/integrity/check/area_positions_known.rb
Overview
This encapsulates a top-level entry in the JSON file which acts as an index of the boundary data directories
Instance Method Summary collapse
- #associated_positions ⇒ Object
-
#initialize(entry_data) ⇒ BoundaryIndexEntry
constructor
A new instance of BoundaryIndexEntry.
Constructor Details
#initialize(entry_data) ⇒ BoundaryIndexEntry
Returns a new instance of BoundaryIndexEntry.
67 68 69 |
# File 'lib/commons/integrity/check/area_positions_known.rb', line 67 def initialize(entry_data) @entry_data = entry_data end |
Instance Method Details
#associated_positions ⇒ Object
71 72 73 |
# File 'lib/commons/integrity/check/area_positions_known.rb', line 71 def associated_positions entry_data[:associations].map { |association| association[:position_item_id] } end |