Class: RedshiftCsv::Configuration
- Inherits:
-
Object
- Object
- RedshiftCsv::Configuration
- Defined in:
- lib/redshift_csv/configuration.rb
Instance Attribute Summary collapse
-
#dbname ⇒ Object
Returns the value of attribute dbname.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(args) ⇒ Configuration
constructor
A new instance of Configuration.
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
#dbname ⇒ Object
Returns the value of attribute dbname.
3 4 5 |
# File 'lib/redshift_csv/configuration.rb', line 3 def dbname @dbname end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/redshift_csv/configuration.rb', line 3 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/redshift_csv/configuration.rb', line 3 def password @password end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/redshift_csv/configuration.rb', line 3 def user @user end |