Class: RoadForest::HTTP::Keychain::Credentials
- Inherits:
-
Struct
- Object
- Struct
- RoadForest::HTTP::Keychain::Credentials
- 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
8 9 10 |
# File 'lib/roadforest/http/keychain.rb', line 8 def secret @secret end |
#user ⇒ Object
Returns the value of attribute user
8 9 10 |
# File 'lib/roadforest/http/keychain.rb', line 8 def user @user end |
Instance Method Details
#header_value ⇒ Object
9 10 11 |
# File 'lib/roadforest/http/keychain.rb', line 9 def header_value "Basic #{Base64.strict_encode64("#{user}:#{secret}")}" end |