require 'fiona7/attribute_readers/attribute_reader' module Fiona7 module AttributeReaders class ReferencelistAsLinklist < AttributeReader def call links = self.obj.attr_values[self.attr_name] || [] links.map do |link| if link && link["type"] == "internal" link["destination"].to_s end end end end end end