Sha256: 167f16519a7e21fb3426c8de523aadbe313265da38aed194dffaa314f6a0a99a
Contents?: true
Size: 787 Bytes
Versions: 6
Compression:
Stored size: 787 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', } # 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
6 entries across 6 versions & 1 rubygems