Class: Arclight::NormalizedId

Inherits:
Object
  • Object
show all
Defined in:
lib/arclight/normalized_id.rb

Overview

A simple utility class to normalize identifiers to be used around the application for linking

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ NormalizedId

Returns a new instance of NormalizedId.



8
9
10
# File 'lib/arclight/normalized_id.rb', line 8

def initialize(id)
  @id = id
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/arclight/normalized_id.rb', line 12

def to_s
  normalize
end