Class: RedshiftCsv::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/redshift_csv/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/redshift_csv/configuration.rb', line 5

def initialize(args)
  @host = args.fetch(:host, nil)
  @user = args.fetch(:user, nil)
  @password = args.fetch(:password, nil)
  @dbname = args.fetch(:dbname, nil)
end

Instance Attribute Details

#dbnameObject

Returns the value of attribute dbname.



3
4
5
# File 'lib/redshift_csv/configuration.rb', line 3

def dbname
  @dbname
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/redshift_csv/configuration.rb', line 3

def host
  @host
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/redshift_csv/configuration.rb', line 3

def password
  @password
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'lib/redshift_csv/configuration.rb', line 3

def user
  @user
end