lib/ccrypto/configs/secret_sharing_config.rb in ccrypto-0.1.3 vs lib/ccrypto/configs/secret_sharing_config.rb in ccrypto-0.2.0
- old
+ new
@@ -5,7 +5,14 @@
include AlgoConfig
attr_accessor :split_into
attr_accessor :required_parts
+ def initialize(val = {})
+ if val.is_a?(Hash)
+ @split_into = val[:split_into]
+ @required_parts = val[:required_parts]
+ end
+ end
+
end
end