Sha256: 124668bb9337cef8c763f47859aa9c7c3d61c1e56f5e94c4d5cf883f68da675f

Contents?: true

Size: 478 Bytes

Versions: 6

Compression:

Stored size: 478 Bytes

Contents

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" , "tgn", "ulan" ]
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qa-0.10.1 lib/qa/authorities/getty.rb
qa-0.10.0 lib/qa/authorities/getty.rb
qa-0.9.0 lib/qa/authorities/getty.rb
qa-0.8.0 lib/qa/authorities/getty.rb
qa-0.7.0 lib/qa/authorities/getty.rb
qa-0.6.0 lib/qa/authorities/getty.rb