Class: Credentialias::Helper::Credential
- Inherits:
-
Object
- Object
- Credentialias::Helper::Credential
- Defined in:
- lib/credentialias/helper/credential.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Credential
constructor
A new instance of Credential.
Constructor Details
#initialize(params = {}) ⇒ Credential
Returns a new instance of Credential.
5 6 7 8 |
# File 'lib/credentialias/helper/credential.rb', line 5 def initialize params={} @user = params["user"] @password = params["password"] end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
4 5 6 |
# File 'lib/credentialias/helper/credential.rb', line 4 def password @password end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
4 5 6 |
# File 'lib/credentialias/helper/credential.rb', line 4 def user @user end |