Class: Qravan::Credentials::Signature
- Inherits:
-
Object
- Object
- Qravan::Credentials::Signature
- Defined in:
- lib/qravan/credentials/signature.rb
Overview
System credentials
Instance Attribute Summary collapse
-
#credentials ⇒ Object
Returns the value of attribute credentials.
Instance Method Summary collapse
- #digest ⇒ Object
-
#initialize(credentials) ⇒ Signature
constructor
A new instance of Signature.
- #prepare ⇒ Object
- #signature ⇒ Object
Constructor Details
#initialize(credentials) ⇒ Signature
Returns a new instance of Signature.
9 10 11 |
# File 'lib/qravan/credentials/signature.rb', line 9 def initialize(credentials) @credentials = credentials["signature"] end |
Instance Attribute Details
#credentials ⇒ Object
Returns the value of attribute credentials.
7 8 9 |
# File 'lib/qravan/credentials/signature.rb', line 7 def credentials @credentials end |
Instance Method Details
#digest ⇒ Object
20 21 22 |
# File 'lib/qravan/credentials/signature.rb', line 20 def digest @credentials["digest"] end |
#prepare ⇒ Object
13 14 15 16 17 18 |
# File 'lib/qravan/credentials/signature.rb', line 13 def prepare { digest: digest, signature: signature } end |
#signature ⇒ Object
24 25 26 |
# File 'lib/qravan/credentials/signature.rb', line 24 def signature @credentials["signature"] end |