Class: Innkeeper::Resolvers::Database

Inherits:
Abstract
  • Object
show all
Defined in:
lib/innkeeper/resolvers/database.rb

Instance Attribute Summary

Attributes inherited from Abstract

#init_config

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from Innkeeper::Resolvers::Abstract

Instance Method Details

#resolve(tenant) ⇒ Object



6
7
8
# File 'lib/innkeeper/resolvers/database.rb', line 6

def resolve(tenant)
  init_config.dup.tap{ |c| c[:database] = tenant }
end