Class: Credentialias::Helper::Credential

Inherits:
Object
  • Object
show all
Defined in:
lib/credentialias/helper/credential.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#passwordObject (readonly)

Returns the value of attribute password.



4
5
6
# File 'lib/credentialias/helper/credential.rb', line 4

def password
  @password
end

#userObject (readonly)

Returns the value of attribute user.



4
5
6
# File 'lib/credentialias/helper/credential.rb', line 4

def user
  @user
end