Class: ActiveRecordMysqlRepl::Database::Configs

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_mysql_repl/database/configs.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configsObject (readonly)

Returns the value of attribute configs.



6
7
8
# File 'lib/active_record_mysql_repl/database/configs.rb', line 6

def configs
  @configs
end

Class Method Details

.load(path) ⇒ Object



8
9
10
# File 'lib/active_record_mysql_repl/database/configs.rb', line 8

def self.load(path)
  new(YAML.load_file(path, aliases: true))
end

Instance Method Details

#[](key) ⇒ Object



12
13
14
# File 'lib/active_record_mysql_repl/database/configs.rb', line 12

def [](key)
  configs[key]
end

#keysObject



16
17
18
# File 'lib/active_record_mysql_repl/database/configs.rb', line 16

def keys
  configs.keys
end