Sha256: fe49c57ae6b4997b8c0c62fb603414c52b73f104f789e90e3bfc64d3c318c576
Contents?: true
Size: 792 Bytes
Versions: 37
Compression:
Stored size: 792 Bytes
Contents
# Encapsulate information about assignFAST subauthorities module Qa::Authorities::AssignFastSubauthority # Hash of subauthority names used in qa routes => 'index' used by API SUBAUTHORITIES = { 'all' => 'suggestall', 'personal' => 'suggest00', 'corporate' => 'suggest10', 'event' => 'suggest11', 'uniform' => 'suggest30', 'topical' => 'suggest50', 'geographic' => 'suggest51', 'form_genre' => 'suggest55' }.freeze # Get a list of subauthorities by name # # @return [Array<String>] def subauthorities SUBAUTHORITIES.keys end # Get an API index name from an English name # # @param [String] English name # @return [String] index name def index_for_authority(authority) SUBAUTHORITIES[authority] end end
Version data entries
37 entries across 37 versions & 1 rubygems