Class: Commons::Integrity::BoundaryIndexEntry

Inherits:
Object
  • Object
show all
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

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_positionsObject



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