Module: Pubid::IdentifierMetadata::InstanceMethods

Defined in:
lib/pubid/identifier_metadata.rb

Instance Method Summary collapse

Instance Method Details

#metadataMetadata?

Get metadata for this instance’s class

Returns:



126
127
128
# File 'lib/pubid/identifier_metadata.rb', line 126

def 
  self.class.
end

#slugString?

Get the machine-readable slug

Returns:

  • (String, nil)


138
139
140
# File 'lib/pubid/identifier_metadata.rb', line 138

def slug
  &.slug
end

#type_keySymbol?

Get the type key for this identifier

Returns:

  • (Symbol, nil)


132
133
134
# File 'lib/pubid/identifier_metadata.rb', line 132

def type_key
  self.class.type_key
end