Class: RoadForest::HTTP::Keychain::Credentials

Inherits:
Struct
  • Object
show all
Defined in:
lib/roadforest/http/keychain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#secretObject

Returns the value of attribute secret

Returns:

  • (Object)

    the current value of secret



8
9
10
# File 'lib/roadforest/http/keychain.rb', line 8

def secret
  @secret
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



8
9
10
# File 'lib/roadforest/http/keychain.rb', line 8

def user
  @user
end

Instance Method Details

#header_valueObject



9
10
11
# File 'lib/roadforest/http/keychain.rb', line 9

def header_value
  "Basic #{Base64.strict_encode64("#{user}:#{secret}")}"
end