module Qa::Authorities::AssignFastSubauthority

Encapsulate information about assignFAST subauthorities

Constants

SUBAUTHORITIES

Hash of subauthority names used in qa routes => ‘index’ used by API

Public Instance Methods

index_for_authority(authority) click to toggle source

Get an API index name from an English name

@param [String] English name @return [String] index name

# File lib/qa/authorities/assign_fast_subauthority.rb, line 26
def index_for_authority(authority)
  SUBAUTHORITIES[authority]
end
subauthorities() click to toggle source

Get a list of subauthorities by name

@return [Array<String>]

# File lib/qa/authorities/assign_fast_subauthority.rb, line 18
def subauthorities
  SUBAUTHORITIES.keys
end