Module: Qa::Authorities::Discogs

Extended by:
ActiveSupport::Autoload, AuthorityWithSubAuthority, DiscogsSubauthority
Defined in:
lib/qa/authorities/discogs.rb,
lib/qa/authorities/discogs/discogs_utils.rb,
lib/qa/authorities/discogs/discogs_translation.rb,
lib/qa/authorities/discogs/discogs_works_builder.rb,
lib/qa/authorities/discogs/discogs_instance_builder.rb

Overview

Provide authority namespace

Defined Under Namespace

Modules: DiscogsInstanceBuilder, DiscogsTranslation, DiscogsUtils, DiscogsWorksBuilder Classes: GenericAuthority

Class Method Summary collapse

Methods included from AuthorityWithSubAuthority

new, subauthorities, subauthority_class, subauthority_for, validate_subauthority!

Methods included from DiscogsSubauthority

authorities

Class Method Details

.subauthoritiesObject



24
25
26
# File 'lib/qa/authorities/discogs.rb', line 24

def self.subauthorities
  authorities
end

.subauthority_for(subauthority) ⇒ GenericAuthority

Create an authority object for given subauthority

Parameters:

  • subauthority (String)

    to use

Returns:



19
20
21
22
# File 'lib/qa/authorities/discogs.rb', line 19

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