Class: Schemas::Descriptors

Inherits:
SimpleCache show all
Includes:
Singleton
Defined in:
lib/schemas/descriptors.rb

Instance Method Summary collapse

Methods inherited from SimpleCache

#bust, #get, #initialize

Constructor Details

This class inherits a constructor from SimpleCache

Instance Method Details

#new_object(role) ⇒ Object



5
6
7
8
# File 'lib/schemas/descriptors.rb', line 5

def new_object(role)
  raise "Role '#{role}' not configured" unless Role.configured_connections.include?(role)
  Descriptor.new(role)
end