Class: Arclight::NormalizedId
- Inherits:
-
Object
- Object
- Arclight::NormalizedId
- Defined in:
- lib/arclight/normalized_id.rb
Overview
A simple utility class to normalize identifiers
Instance Method Summary collapse
-
#initialize(id, **_kwargs) ⇒ NormalizedId
constructor
Accepts unused kwargs from the ead2_config.rb id to_field directive (:title and :repository) so that applications can provide a custom id_normalizer class to traject to form the collection id from these attributes.
- #to_s ⇒ Object
Constructor Details
#initialize(id, **_kwargs) ⇒ NormalizedId
Accepts unused kwargs from the ead2_config.rb id to_field directive (:title and :repository) so that applications can provide a custom id_normalizer class to traject to form the collection id from these attributes.
12 13 14 |
# File 'lib/arclight/normalized_id.rb', line 12 def initialize(id, **_kwargs) @id = id end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/arclight/normalized_id.rb', line 16 def to_s normalize end |