Class: Commutateurs::Credentials
- Inherits:
-
Object
- Object
- Commutateurs::Credentials
- Defined in:
- lib/commutateurs/device.rb
Instance Attribute Summary collapse
-
#enable ⇒ Object
readonly
Returns the value of attribute enable.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, password, enable) ⇒ Credentials
constructor
A new instance of Credentials.
Constructor Details
#initialize(user, password, enable) ⇒ Credentials
Returns a new instance of Credentials.
4 5 6 7 8 |
# File 'lib/commutateurs/device.rb', line 4 def initialize(user, password, enable) @user = user @password = password @enable = enable end |
Instance Attribute Details
#enable ⇒ Object (readonly)
Returns the value of attribute enable.
3 4 5 |
# File 'lib/commutateurs/device.rb', line 3 def enable @enable end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
3 4 5 |
# File 'lib/commutateurs/device.rb', line 3 def password @password end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
3 4 5 |
# File 'lib/commutateurs/device.rb', line 3 def user @user end |