Class: DecryptSymmetricResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DecryptSymmetricResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1120 1121 1122 1123 1124 1125 |
# File 'lib/schemas.rb', line 1120 def self.from_dynamic!(d) d = Types::Hash[d] new( decrypted: d.fetch("decrypted"), ) end |
.from_json!(json) ⇒ Object
1127 1128 1129 |
# File 'lib/schemas.rb', line 1127 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1131 1132 1133 1134 1135 |
# File 'lib/schemas.rb', line 1131 def to_dynamic { "decrypted" => decrypted, } end |
#to_json(options = nil) ⇒ Object
1137 1138 1139 |
# File 'lib/schemas.rb', line 1137 def to_json( = nil) JSON.generate(to_dynamic, ) end |