Class: RareMap::DatabaseProfile
- Inherits:
-
Object
- Object
- RareMap::DatabaseProfile
- Defined in:
- lib/rare_map/config_loader.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#tables ⇒ Object
Returns the value of attribute tables.
Instance Method Summary collapse
-
#initialize(name, connection, options) ⇒ DatabaseProfile
constructor
A new instance of DatabaseProfile.
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, ) @name, @connection = name, connection @options = || Options.new @tables = [] end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
50 51 52 |
# File 'lib/rare_map/config_loader.rb', line 50 def connection @connection end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
50 51 52 |
# File 'lib/rare_map/config_loader.rb', line 50 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
50 51 52 |
# File 'lib/rare_map/config_loader.rb', line 50 def @options end |
#schema ⇒ Object
Returns the value of attribute schema.
51 52 53 |
# File 'lib/rare_map/config_loader.rb', line 51 def schema @schema end |
#tables ⇒ Object
Returns the value of attribute tables.
51 52 53 |
# File 'lib/rare_map/config_loader.rb', line 51 def tables @tables end |