Module: SecID::IdentifierMetadata

Included in:
Base
Defined in:
lib/sec_id/concerns/identifier_metadata.rb

Overview

Provides class-level metadata methods for identifier types.

Including classes must define constants: FULL_NAME, ID_LENGTH, EXAMPLE.

Examples:

SecID::ISIN.short_name       #=> "ISIN"
SecID::ISIN.full_name        #=> "International Securities Identification Number"
SecID::ISIN.has_check_digit? #=> true

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/sec_id/concerns/identifier_metadata.rb', line 14

def self.included(base)
  base.extend(ClassMethods)
end