Class: DbUrlHelper::Credentials::Credentialias

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

Constant Summary collapse

DEPENDS =
"Credentialias::Helper"
WEIGHT =
10

Instance Attribute Summary

Attributes inherited from Generic

#service

Instance Method Summary collapse

Methods included from Registerable

base, included, #testable?

Methods inherited from Generic

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

Constructor Details

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

Instance Method Details

#credentialObject



14
15
16
# File 'lib/db_url_helper/credentials/credentialias.rb', line 14

def credential
  @credential ||= ::Credentialias::Helper.load(service, tags: filters) rescue super
end

#passwordObject



11
12
13
# File 'lib/db_url_helper/credentials/credentialias.rb', line 11

def password
  credential.password rescue nil
end

#userObject



8
9
10
# File 'lib/db_url_helper/credentials/credentialias.rb', line 8

def user
  credential.user rescue nil
end