Class: RareMap::DatabaseProfile

Inherits:
Object
  • Object
show all
Defined in:
lib/rare_map/config_loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, connection, options) ⇒ DatabaseProfile

Returns a new instance of DatabaseProfile.



53
54
55
56
57
# File 'lib/rare_map/config_loader.rb', line 53

def initialize(name, connection, options)
  @name, @connection = name, connection
  @options = options || Options.new
  @tables = []
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



50
51
52
# File 'lib/rare_map/config_loader.rb', line 50

def connection
  @connection
end

#nameObject (readonly)

Returns the value of attribute name.



50
51
52
# File 'lib/rare_map/config_loader.rb', line 50

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



50
51
52
# File 'lib/rare_map/config_loader.rb', line 50

def options
  @options
end

#schemaObject

Returns the value of attribute schema.



51
52
53
# File 'lib/rare_map/config_loader.rb', line 51

def schema
  @schema
end

#tablesObject

Returns the value of attribute tables.



51
52
53
# File 'lib/rare_map/config_loader.rb', line 51

def tables
  @tables
end