Class: Qa::Authorities::Local::Registry::RegistryEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/qa/authorities/local/registry.rb

Instance Method Summary collapse

Constructor Details

#initialize(subauthority, class_name) ⇒ RegistryEntry

Returns a new instance of RegistryEntry.



35
36
37
38
# File 'lib/qa/authorities/local/registry.rb', line 35

def initialize(subauthority, class_name)
  @subauthority = subauthority
  @class_name = class_name
end

Instance Method Details

#instanceObject



44
45
46
# File 'lib/qa/authorities/local/registry.rb', line 44

def instance
  klass.new(@subauthority)
end

#klassObject



40
41
42
# File 'lib/qa/authorities/local/registry.rb', line 40

def klass
  @class_name.constantize
end