Module: Ghaki::Account::DB_Name

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SynOpts

attr_syn_opts

Instance Attribute Details

#db_nameObject

Returns the value of attribute db_name.



11
12
13
# File 'lib/ghaki/account/db_name.rb', line 11

def db_name
  @db_name
end

Instance Method Details

#valid_db_name?Boolean


Returns:

  • (Boolean)


14
15
16
17
18
# File 'lib/ghaki/account/db_name.rb', line 14

def valid_db_name?
  return false if @db_name.nil?
  return false if @db_name.empty?
  return true
end