Module: Qa::Authorities::Getty
Defined Under Namespace
Classes: AAT, AAT2, TGN, Ulan
Class Method Summary
collapse
new, subauthorities, subauthority_class, subauthority_for, validate_subauthority!
Class Method Details
.subauthorities ⇒ Object
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
|