Class: Duse::Client::CreateSecret::CreatableSecret
- Inherits:
-
Object
- Object
- Duse::Client::CreateSecret::CreatableSecret
- Defined in:
- lib/duse/client/secret.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(options) ⇒ CreatableSecret
constructor
A new instance of CreatableSecret.
Constructor Details
#initialize(options) ⇒ CreatableSecret
Returns a new instance of CreatableSecret.
50 51 52 |
# File 'lib/duse/client/secret.rb', line 50 def initialize() @options = end |
Instance Method Details
#build ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/duse/client/secret.rb', line 54 def build cipher_text, shares = Encryption.encrypt(@options[:secret_text], @options[:users], @options[:private_key]) { title: @options[:title], cipher_text: cipher_text, shares: shares, folder_id: @options[:folder_id] } end |