Class: Ccrypto::SecretKey
- Inherits:
-
Object
- Object
- Ccrypto::SecretKey
- Defined in:
- lib/ccrypto/secret_key.rb
Instance Attribute Summary collapse
-
#algo ⇒ Object
Returns the value of attribute algo.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(algo, key) ⇒ SecretKey
constructor
A new instance of SecretKey.
Constructor Details
#initialize(algo, key) ⇒ SecretKey
Returns a new instance of SecretKey.
8 9 10 11 |
# File 'lib/ccrypto/secret_key.rb', line 8 def initialize(algo, key) @algo = algo @key = key end |
Instance Attribute Details
#algo ⇒ Object
Returns the value of attribute algo.
5 6 7 |
# File 'lib/ccrypto/secret_key.rb', line 5 def algo @algo end |
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/ccrypto/secret_key.rb', line 6 def key @key end |