Module: Zanox::API::Session
- Defined in:
- lib/zanox/session.rb
Class Attribute Summary collapse
-
.connect_id ⇒ Object
Returns the value of attribute connect_id.
-
.secret_key ⇒ Object
Returns the value of attribute secret_key.
Class Method Summary collapse
Class Attribute Details
.connect_id ⇒ Object
Returns the value of attribute connect_id.
29 30 31 |
# File 'lib/zanox/session.rb', line 29 def connect_id @connect_id end |
.secret_key ⇒ Object
Returns the value of attribute secret_key.
30 31 32 |
# File 'lib/zanox/session.rb', line 30 def secret_key @secret_key end |
Class Method Details
.fingerprint_of(method, options, verb = 'GET') ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/zanox/session.rb', line 32 def fingerprint_of(method, , verb = 'GET') method = method[0] == '/' ? method : "/#{method}" = nonce = get_nonce signature = create_signature(Session.secret_key, "#{verb}#{method.downcase}#{}#{nonce}") [, nonce, signature] end |