Class: Qravan::Credentials::Query

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query_credentials) ⇒ Query

Returns a new instance of Query.



15
16
17
# File 'lib/qravan/credentials.rb', line 15

def initialize(query_credentials)
  @query_credentials ||= query_credentials
end

Instance Attribute Details

#query_credentialsObject

Returns the value of attribute query_credentials.



13
14
15
# File 'lib/qravan/credentials.rb', line 13

def query_credentials
  @query_credentials
end

Instance Method Details

#credentialsObject



19
20
21
22
23
24
25
26
# File 'lib/qravan/credentials.rb', line 19

def credentials
  {
    response: Qravan::Credentials::Response.new(@query_credentials).prepare,
    system: Qravan::Credentials::System.new(@query_credentials).prepare,
    request: Qravan::Credentials::Request.new(@query_credentials).prepare,
    signature: Qravan::Credentials::Signature.new(@query_credentials).prepare
  }
end