Class: DbUrlHelper::Credentials::Environment

Inherits:
Generic
  • Object
show all
Includes:
Registerable
Defined in:
lib/db_url_helper/credentials/environment.rb

Constant Summary collapse

DEPENDS =
"ENV"
WEIGHT =
1

Instance Attribute Summary

Attributes inherited from Generic

#service

Instance Method Summary collapse

Methods included from Registerable

base, included, #testable?

Methods inherited from Generic

#credential, #filters, #filters=, #initialize, #load, weight, #weight

Constructor Details

This class inherits a constructor from DbUrlHelper::Credentials::Generic

Instance Method Details

#passwordObject



10
11
12
# File 'lib/db_url_helper/credentials/environment.rb', line 10

def password
  ENV['DB_PASSWORD']
end

#userObject



7
8
9
# File 'lib/db_url_helper/credentials/environment.rb', line 7

def user
  ENV['DB_USER']
end