Class: TacScribe::Datastore::Configuration
- Inherits:
-
Object
- Object
- TacScribe::Datastore::Configuration
- Defined in:
- lib/tac_scribe/datastore.rb
Overview
Contains all the connection configuration required for connectin to a postgresql database. Defaults to localhost with ubuntu presets
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
36 37 38 39 40 41 42 |
# File 'lib/tac_scribe/datastore.rb', line 36 def initialize @host = 'localhost' @port = '5432' @database = 'tac_scribe' @username = 'tac_scribe' @password = 'tac_scribe' end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
34 35 36 |
# File 'lib/tac_scribe/datastore.rb', line 34 def database @database end |
#host ⇒ Object
Returns the value of attribute host.
34 35 36 |
# File 'lib/tac_scribe/datastore.rb', line 34 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
34 35 36 |
# File 'lib/tac_scribe/datastore.rb', line 34 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
34 35 36 |
# File 'lib/tac_scribe/datastore.rb', line 34 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
34 35 36 |
# File 'lib/tac_scribe/datastore.rb', line 34 def username @username end |