Class: Mysql2::AwsRdsIam::AuthToken::Registry

Inherits:
Hash
  • Object
show all
Defined in:
lib/mysql2/aws_rds_iam/auth_token/registry.rb

Instance Method Summary collapse

Constructor Details

#initializeRegistry

Returns a new instance of Registry.



7
8
9
10
11
# File 'lib/mysql2/aws_rds_iam/auth_token/registry.rb', line 7

def initialize
  add(:default, Generator.new)

  super
end

Instance Method Details

#add(name, generator) ⇒ Object



13
14
15
# File 'lib/mysql2/aws_rds_iam/auth_token/registry.rb', line 13

def add(name, generator)
  self[name] = generator
end