Class: Ccrypto::SecretKey

Inherits:
Object
  • Object
show all
Defined in:
lib/ccrypto/secret_key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#algoObject

Returns the value of attribute algo.



5
6
7
# File 'lib/ccrypto/secret_key.rb', line 5

def algo
  @algo
end

#keyObject

Returns the value of attribute key.



6
7
8
# File 'lib/ccrypto/secret_key.rb', line 6

def key
  @key
end