Class: Qravan::Credentials::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/qravan/credentials/signature.rb

Overview

System credentials

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#credentialsObject

Returns the value of attribute credentials.



7
8
9
# File 'lib/qravan/credentials/signature.rb', line 7

def credentials
  @credentials
end

Instance Method Details

#digestObject



20
21
22
# File 'lib/qravan/credentials/signature.rb', line 20

def digest
  @credentials["digest"]
end

#prepareObject



13
14
15
16
17
18
# File 'lib/qravan/credentials/signature.rb', line 13

def prepare
  {
    digest: digest,
    signature: signature
  }
end

#signatureObject



24
25
26
# File 'lib/qravan/credentials/signature.rb', line 24

def signature
  @credentials["signature"]
end