Class: RoadForest::HTTP::BasicCredentials
- Inherits:
-
Struct
- Object
- Struct
- RoadForest::HTTP::BasicCredentials
- Defined in:
- lib/roadforest/http/keychain.rb
Instance Attribute Summary collapse
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#secret ⇒ Object
Returns the value of attribute secret
6 7 8 |
# File 'lib/roadforest/http/keychain.rb', line 6 def secret @secret end |
#user ⇒ Object
Returns the value of attribute user
6 7 8 |
# File 'lib/roadforest/http/keychain.rb', line 6 def user @user end |
Instance Method Details
#header_value ⇒ Object
7 8 9 |
# File 'lib/roadforest/http/keychain.rb', line 7 def header_value "Basic #{Base64.strict_encode64("#{user}:#{secret}")}" end |