Module: Qa::Authorities::Getty

Extended by:
AuthorityWithSubAuthority
Defined in:
lib/qa/authorities/getty.rb

Defined Under Namespace

Classes: AAT, AAT2, TGN, Ulan

Class Method Summary collapse

Methods included from AuthorityWithSubAuthority

new, subauthorities, subauthority_class, subauthority_for, validate_subauthority!

Class Method Details

.subauthoritiesObject



10
11
12
# File 'lib/qa/authorities/getty.rb', line 10

def self.subauthorities
  ["aat", "tgn", "ulan"]
end

.subauthority_class(subauthority) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/qa/authorities/getty.rb', line 14

def self.subauthority_class(subauthority)
  case subauthority
  when 'aat'
    AAT
  when 'tgn'
    TGN
  when 'ulan'
    Ulan
  end
end