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.



37
38
39
40
# File 'lib/qa/authorities/local/registry.rb', line 37

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

Instance Method Details

#instanceObject



46
47
48
# File 'lib/qa/authorities/local/registry.rb', line 46

def instance
  klass.new(@subauthority)
end

#klassObject



42
43
44
# File 'lib/qa/authorities/local/registry.rb', line 42

def klass
  @class_name.constantize
end