require 'fiona7/attribute_readers/attribute_reader' module Fiona7 module AttributeReaders class ReferenceAsLinklist < AttributeReader def call link = self.obj.attr_values[self.attr_name].try(:first) if link && link["type"] == "internal" link["destination"].to_s end end end end end