Module: Qa::Authorities::Crossref

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

Defined Under Namespace

Classes: GenericAuthority

Class Method Summary collapse

Methods included from AuthorityWithSubAuthority

new, subauthorities, subauthority_class, subauthority_for, validate_subauthority!

Class Method Details

.subauthoritiesObject



12
13
14
# File 'lib/qa/authorities/crossref.rb', line 12

def self.subauthorities
  ['funders', 'journals']
end

.subauthority_for(subauthority) ⇒ Object



7
8
9
10
# File 'lib/qa/authorities/crossref.rb', line 7

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