Class: Quickjs::CryptoKey
- Inherits:
-
Object
- Object
- Quickjs::CryptoKey
- Defined in:
- lib/quickjs/crypto_key.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
readonly
Returns the value of attribute algorithm.
-
#extractable ⇒ Object
readonly
Returns the value of attribute extractable.
-
#key_data ⇒ Object
readonly
Returns the value of attribute key_data.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#usages ⇒ Object
readonly
Returns the value of attribute usages.
Instance Method Summary collapse
-
#initialize(type, extractable, algorithm, usages, key_data) ⇒ CryptoKey
constructor
A new instance of CryptoKey.
Constructor Details
#initialize(type, extractable, algorithm, usages, key_data) ⇒ CryptoKey
Returns a new instance of CryptoKey.
7 8 9 10 11 12 13 |
# File 'lib/quickjs/crypto_key.rb', line 7 def initialize(type, extractable, algorithm, usages, key_data) @type = type @extractable = extractable @algorithm = algorithm @usages = usages @key_data = key_data end |
Instance Attribute Details
#algorithm ⇒ Object (readonly)
Returns the value of attribute algorithm.
5 6 7 |
# File 'lib/quickjs/crypto_key.rb', line 5 def algorithm @algorithm end |
#extractable ⇒ Object (readonly)
Returns the value of attribute extractable.
5 6 7 |
# File 'lib/quickjs/crypto_key.rb', line 5 def extractable @extractable end |
#key_data ⇒ Object (readonly)
Returns the value of attribute key_data.
5 6 7 |
# File 'lib/quickjs/crypto_key.rb', line 5 def key_data @key_data end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/quickjs/crypto_key.rb', line 5 def type @type end |
#usages ⇒ Object (readonly)
Returns the value of attribute usages.
5 6 7 |
# File 'lib/quickjs/crypto_key.rb', line 5 def usages @usages end |