Method: JSON::JWS#update_with_jose_attributes
- Defined in:
- lib/json/jws.rb
#update_with_jose_attributes(hash_or_jwt) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/json/jws.rb', line 30 def update_with_jose_attributes(hash_or_jwt) update_without_jose_attributes hash_or_jwt if hash_or_jwt.is_a? JSON::JWT self.header = hash_or_jwt.header self.signature = hash_or_jwt.signature end self end |