class Forty::Database
Attributes
database[RW]
host[RW]
name[RW]
password[RW]
port[RW]
user[RW]
Public Instance Methods
execute(statement)
click to toggle source
# File lib/forty/database.rb, line 11 def execute(statement) @db ||= PG.connect( host: self.host, port: self.port, user: self.user, password: self.password, dbname: self.database ) @db.exec(statement) end