Module: Qa::Authorities::AssignFastSubauthority
- Included in:
- AssignFast
- Defined in:
- lib/qa/authorities/assign_fast_subauthority.rb
Overview
Encapsulate information about assignFAST subauthorities
Constant Summary collapse
- SUBAUTHORITIES =
Hash of subauthority names used in qa routes => ‘index’ used by API
{ 'all' => 'suggestall', 'personal' => 'suggest00', 'corporate' => 'suggest10', 'event' => 'suggest11', 'uniform' => 'suggest30', 'topical' => 'suggest50', 'geographic' => 'suggest51', 'form_genre' => 'suggest55' }.freeze
Instance Method Summary collapse
-
#index_for_authority(authority) ⇒ String
Get an API index name from an English name.
-
#subauthorities ⇒ Array<String>
Get a list of subauthorities by name.
Instance Method Details
#index_for_authority(authority) ⇒ String
Get an API index name from an English name
26 27 28 |
# File 'lib/qa/authorities/assign_fast_subauthority.rb', line 26 def () SUBAUTHORITIES[] end |
#subauthorities ⇒ Array<String>
Get a list of subauthorities by name
18 19 20 |
# File 'lib/qa/authorities/assign_fast_subauthority.rb', line 18 def SUBAUTHORITIES.keys end |