Module: Qa::Authorities::Loc

Extended by:
AuthorityWithSubAuthority, LocSubauthority
Defined in:
lib/qa/authorities/loc.rb

Defined Under Namespace

Classes: GenericAuthority

Class Method Summary collapse

Methods included from AuthorityWithSubAuthority

new, subauthorities, subauthority_class, subauthority_for, validate_subauthority!

Methods included from LocSubauthority

authorities, datatypes, get_url_for_authority, preservation, vocabularies

Class Method Details

.subauthoritiesObject



14
15
16
# File 'lib/qa/authorities/loc.rb', line 14

def self.subauthorities
  authorities + vocabularies + datatypes + preservation
end

.subauthority_for(subauthority) ⇒ Object



8
9
10
11
# File 'lib/qa/authorities/loc.rb', line 8

def self.subauthority_for(subauthority)
  validate_subauthority!(subauthority)
  GenericAuthority.new(subauthority)
end