Method: COSE::Key#initialize
- Defined in:
- lib/cose/key.rb
#initialize(attrs = {}) ⇒ Key
Returns a new instance of Key.
23 24 25 26 27 28 29 |
# File 'lib/cose/key.rb', line 23 def initialize(attrs = {}) self.kty = attrs[KTY] self.kid = attrs[KID] self.alg = attrs[ALG] self.ops = attrs[OPS] self.base_iv = attrs[BASE_IV] end |