Class: RoadForest::HTTP::BasicCredentials

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



6
7
8
# File 'lib/roadforest/http/keychain.rb', line 6

def secret
  @secret
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



6
7
8
# File 'lib/roadforest/http/keychain.rb', line 6

def user
  @user
end

Instance Method Details

#header_valueObject



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

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