lib/qa/authorities/getty.rb in qa-0.5.0 vs lib/qa/authorities/getty.rb in qa-0.6.0

- old
+ new

@@ -1,17 +1,26 @@ require 'uri' module Qa::Authorities module Getty require 'qa/authorities/getty/aat' + require 'qa/authorities/getty/tgn' + require 'qa/authorities/getty/ulan' extend AuthorityWithSubAuthority def self.subauthorities - [ "aat" ] + [ "aat" , "tgn", "ulan" ] end - def self.subauthority_class(_) - AAT + def self.subauthority_class(subauthority) + case subauthority + when 'aat' + AAT + when 'tgn' + TGN + when 'ulan' + Ulan + end end end end