Class: AutomateSoup::Credentials
- Inherits:
-
Object
- Object
- AutomateSoup::Credentials
- Defined in:
- lib/automate_soup/credentials.rb
Overview
Credentials to authenticate with chef automate
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username: nil, password: nil, token: nil) ⇒ Credentials
constructor
A new instance of Credentials.
Constructor Details
#initialize(username: nil, password: nil, token: nil) ⇒ Credentials
Returns a new instance of Credentials.
6 7 8 9 10 11 12 13 14 |
# File 'lib/automate_soup/credentials.rb', line 6 def initialize( username: nil, password: nil, token: nil ) @username = username @password = password @token = token end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
5 6 7 |
# File 'lib/automate_soup/credentials.rb', line 5 def password @password end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/automate_soup/credentials.rb', line 5 def token @token end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
5 6 7 |
# File 'lib/automate_soup/credentials.rb', line 5 def username @username end |