Sha256: 848cae466d6e632558767b2313db4ccf81138d1fcb7c786d30dd097bca3df3ae

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

module Arclight
  ##
  # Logic containing information about Solr_Ead "Parent"
  # https://github.com/awead/solr_ead/blob/8cf7ffaa66e0e4c9c0b12f5646d6c2e20984cd99/lib/solr_ead/behaviors.rb#L54-L57
  class Parent
    attr_reader :id, :label, :eadid, :level

    def initialize(id:, label:, eadid:, level:)
      @id = id
      @label = label
      @eadid = eadid
      @level = level
    end

    def collection?
      level == 'collection'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arclight-1.1.2 app/models/arclight/parent.rb
arclight-1.1.1 app/models/arclight/parent.rb
arclight-1.1.0 app/models/arclight/parent.rb