Class: Mpp::Credential
- Inherits:
-
Data
- Object
- Data
- Mpp::Credential
- Defined in:
- lib/mpp/credential.rb
Instance Attribute Summary collapse
-
#challenge ⇒ Object
readonly
Returns the value of attribute challenge.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Class Method Summary collapse
-
.from_authorization(header) ⇒ Object
Parse a Credential from an Authorization header value.
Instance Method Summary collapse
-
#initialize(challenge:, payload:, source: nil) ⇒ Credential
constructor
A new instance of Credential.
-
#to_authorization ⇒ Object
Serialize to an Authorization header value.
Constructor Details
#initialize(challenge:, payload:, source: nil) ⇒ Credential
Returns a new instance of Credential.
6 7 8 |
# File 'lib/mpp/credential.rb', line 6 def initialize(challenge:, payload:, source: nil) super end |
Instance Attribute Details
#challenge ⇒ Object (readonly)
Returns the value of attribute challenge
5 6 7 |
# File 'lib/mpp/credential.rb', line 5 def challenge @challenge end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload
5 6 7 |
# File 'lib/mpp/credential.rb', line 5 def payload @payload end |
#source ⇒ Object (readonly)
Returns the value of attribute source
5 6 7 |
# File 'lib/mpp/credential.rb', line 5 def source @source end |