class PG::AWS_RDS_IAM::ConnectionInfo::KeywordValueString

Attributes

auth_token_generator_name[R]

Public Class Methods

new(connection_string) click to toggle source
# File lib/pg/aws_rds_iam/connection_info/keyword_value_string.rb, line 9
def initialize(connection_string)
  @params = Parser.new(connection_string).parse
  @auth_token_generator_name = @params.delete(:aws_rds_iam_auth_token_generator)
end

Public Instance Methods

host() click to toggle source
# File lib/pg/aws_rds_iam/connection_info/keyword_value_string.rb, line 18
def host
  @params[:host]
end
password=(value) click to toggle source
# File lib/pg/aws_rds_iam/connection_info/keyword_value_string.rb, line 26
def password=(value)
  @params[:password] = value
end
port() click to toggle source
# File lib/pg/aws_rds_iam/connection_info/keyword_value_string.rb, line 22
def port
  @params[:port]
end
to_h() click to toggle source
# File lib/pg/aws_rds_iam/connection_info/keyword_value_string.rb, line 34
def to_h
  @params.dup
end
to_s() click to toggle source
# File lib/pg/aws_rds_iam/connection_info/keyword_value_string.rb, line 30
def to_s
  @params.map { |key, value| "#{key}=#{PG::Connection.quote_connstr(value)}" }.join(" ")
end
user() click to toggle source
# File lib/pg/aws_rds_iam/connection_info/keyword_value_string.rb, line 14
def user
  @params[:user]
end