Module: Qa::Authorities::AssignFast

Extended by:
AssignFastSubauthority, AuthorityWithSubAuthority
Defined in:
lib/qa/authorities/assign_fast.rb

Overview

Provide authority namespace

Defined Under Namespace

Classes: GenericAuthority

Constant Summary

Constants included from AssignFastSubauthority

Qa::Authorities::AssignFastSubauthority::Subauthorities

Class Method Summary collapse

Methods included from AuthorityWithSubAuthority

new, subauthorities, subauthority_class, subauthority_for, validate_subauthority!

Methods included from AssignFastSubauthority

index_for_authority, subauthorities

Class Method Details

.subauthority_for(subauthority) ⇒ GenericAuthority

Create an authority object for given subauthority

Parameters:

  • subauthority (String)

    to use

Returns:



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

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