Class: AutomateSoup::Credentials

Inherits:
Object
  • Object
show all
Defined in:
lib/automate_soup/credentials.rb

Overview

Credentials to authenticate with chef automate

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#passwordObject (readonly)

Returns the value of attribute password.



5
6
7
# File 'lib/automate_soup/credentials.rb', line 5

def password
  @password
end

#tokenObject (readonly)

Returns the value of attribute token.



5
6
7
# File 'lib/automate_soup/credentials.rb', line 5

def token
  @token
end

#usernameObject (readonly)

Returns the value of attribute username.



5
6
7
# File 'lib/automate_soup/credentials.rb', line 5

def username
  @username
end