Class: PG::AWS_RDS_IAM::ConnectionInfo::ActiveRecordConfigurationHash

Inherits:
Object
  • Object
show all
Defined in:
lib/pg/aws_rds_iam/connection_info/active_record_configuration_hash.rb

Instance Method Summary collapse

Constructor Details

#initialize(configuration_hash) ⇒ ActiveRecordConfigurationHash

Returns a new instance of ActiveRecordConfigurationHash.



7
8
9
# File 'lib/pg/aws_rds_iam/connection_info/active_record_configuration_hash.rb', line 7

def initialize(configuration_hash)
  @configuration_hash = configuration_hash
end

Instance Method Details

#auth_token_generator_nameObject



11
12
13
# File 'lib/pg/aws_rds_iam/connection_info/active_record_configuration_hash.rb', line 11

def auth_token_generator_name
  @configuration_hash[:aws_rds_iam_auth_token_generator]
end

#hostObject



19
20
21
# File 'lib/pg/aws_rds_iam/connection_info/active_record_configuration_hash.rb', line 19

def host
  @configuration_hash[:host]
end

#portObject



23
24
25
# File 'lib/pg/aws_rds_iam/connection_info/active_record_configuration_hash.rb', line 23

def port
  @configuration_hash[:port]
end

#userObject



15
16
17
# File 'lib/pg/aws_rds_iam/connection_info/active_record_configuration_hash.rb', line 15

def user
  @configuration_hash[:username]
end