Class: CDMDEXER::CollectionNameFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/cdmdexer/formatters.rb

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



134
135
136
137
# File 'lib/cdmdexer/formatters.rb', line 134

def self.format(value)
  value['oai_sets'].fetch(value['setSpec'], {})
                   .fetch(:name, '')
end