Module: Ghaki::Account::DB_Connect

Extended by:
SynOpts
Included in:
Database
Defined in:
lib/ghaki/account/db_connect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SynOpts

attr_syn_opts

Instance Attribute Details

#db_connectObject




15
16
17
# File 'lib/ghaki/account/db_connect.rb', line 15

def db_connect
  @db_connect ||= self.make_db_connect
end

Instance Method Details

#valid_db_connect?Boolean


Returns:

  • (Boolean)


20
21
22
23
24
# File 'lib/ghaki/account/db_connect.rb', line 20

def valid_db_connect? 
  return false if @db_connect.nil?
  return false if @db_connect.empty?
  return true
end