Class: HmacSignature::Token
- Inherits:
-
Object
- Object
- HmacSignature::Token
- Defined in:
- lib/hmac_signature/token.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
Instance Method Summary collapse
-
#initialize(key, secret) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(key, secret) ⇒ Token
Returns a new instance of Token.
5 6 7 8 |
# File 'lib/hmac_signature/token.rb', line 5 def initialize key, secret @key = key @secret = secret end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/hmac_signature/token.rb', line 3 def key @key end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
3 4 5 |
# File 'lib/hmac_signature/token.rb', line 3 def secret @secret end |