Class: Qravan::Credentials::Query
- Inherits:
-
Object
- Object
- Qravan::Credentials::Query
- Defined in:
- lib/qravan/credentials.rb
Instance Attribute Summary collapse
-
#query_credentials ⇒ Object
Returns the value of attribute query_credentials.
Instance Method Summary collapse
- #credentials ⇒ Object
-
#initialize(query_credentials) ⇒ Query
constructor
A new instance of Query.
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_credentials ⇒ Object
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
#credentials ⇒ Object
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 |