Module: Ccrypto::KeyBundle
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(mtd, *args, &block) ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'lib/ccrypto/key_bundle.rb', line 17
def method_missing(mtd, *args, &block)
if not @nativeKeypair.nil?
logger.debug "Sending to method #{mtd} of object '#{@nativeKeypair}' at KeyBundle level"
@nativeKeypair.send(mtd, *args, &block)
else
super
end
end
|
Instance Attribute Details
#nativeKeypair ⇒ Object
Returns the value of attribute nativeKeypair.
5
6
7
|
# File 'lib/ccrypto/key_bundle.rb', line 5
def nativeKeypair
@nativeKeypair
end
|
Class Method Details
.from_storage(*args, &block) ⇒ Object
7
8
9
|
# File 'lib/ccrypto/key_bundle.rb', line 7
def KeyBundle.from_storage(*args, &block)
Provider.instance.provider.keybundle_from_storage(*args, &block)
end
|
Instance Method Details
#native ⇒ Object
Also known as:
keypair
11
12
13
|
# File 'lib/ccrypto/key_bundle.rb', line 11
def native
@nativeKeypair
end
|