Class: TacScribe::Datastore::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#databaseObject

Returns the value of attribute database.



34
35
36
# File 'lib/tac_scribe/datastore.rb', line 34

def database
  @database
end

#hostObject

Returns the value of attribute host.



34
35
36
# File 'lib/tac_scribe/datastore.rb', line 34

def host
  @host
end

#passwordObject

Returns the value of attribute password.



34
35
36
# File 'lib/tac_scribe/datastore.rb', line 34

def password
  @password
end

#portObject

Returns the value of attribute port.



34
35
36
# File 'lib/tac_scribe/datastore.rb', line 34

def port
  @port
end

#usernameObject

Returns the value of attribute username.



34
35
36
# File 'lib/tac_scribe/datastore.rb', line 34

def username
  @username
end