Class: Appwrite::Models::AlgoScryptModified
- Inherits:
-
Object
- Object
- Appwrite::Models::AlgoScryptModified
- Defined in:
- lib/appwrite/models/algo_scrypt_modified.rb
Instance Attribute Summary collapse
-
#salt ⇒ Object
readonly
Returns the value of attribute salt.
-
#salt_separator ⇒ Object
readonly
Returns the value of attribute salt_separator.
-
#signer_key ⇒ Object
readonly
Returns the value of attribute signer_key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(salt:, salt_separator:, signer_key:) ⇒ AlgoScryptModified
constructor
A new instance of AlgoScryptModified.
- #to_map ⇒ Object
Constructor Details
#initialize(salt:, salt_separator:, signer_key:) ⇒ AlgoScryptModified
Returns a new instance of AlgoScryptModified.
10 11 12 13 14 15 16 17 18 |
# File 'lib/appwrite/models/algo_scrypt_modified.rb', line 10 def initialize( salt:, salt_separator:, signer_key: ) @salt = salt @salt_separator = salt_separator @signer_key = signer_key end |
Instance Attribute Details
#salt ⇒ Object (readonly)
Returns the value of attribute salt.
6 7 8 |
# File 'lib/appwrite/models/algo_scrypt_modified.rb', line 6 def salt @salt end |
#salt_separator ⇒ Object (readonly)
Returns the value of attribute salt_separator.
7 8 9 |
# File 'lib/appwrite/models/algo_scrypt_modified.rb', line 7 def salt_separator @salt_separator end |
#signer_key ⇒ Object (readonly)
Returns the value of attribute signer_key.
8 9 10 |
# File 'lib/appwrite/models/algo_scrypt_modified.rb', line 8 def signer_key @signer_key end |
Class Method Details
.from(map:) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/appwrite/models/algo_scrypt_modified.rb', line 20 def self.from(map:) AlgoScryptModified.new( salt: map["salt"], salt_separator: map["saltSeparator"], signer_key: map["signerKey"] ) end |
Instance Method Details
#to_map ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/appwrite/models/algo_scrypt_modified.rb', line 28 def to_map { "salt": @salt, "saltSeparator": @salt_separator, "signerKey": @signer_key } end |