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
1138 1139 1140 1141 1142 1143 |
# File 'lib/schemas.rb', line 1138 def self.from_dynamic!(d) d = Types::Hash[d] new( decrypted: d.fetch("decrypted"), ) end |
.from_json!(json) ⇒ Object
1145 1146 1147 |
# File 'lib/schemas.rb', line 1145 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1149 1150 1151 1152 1153 |
# File 'lib/schemas.rb', line 1149 def to_dynamic { "decrypted" => decrypted, } end |
#to_json(options = nil) ⇒ Object
1155 1156 1157 |
# File 'lib/schemas.rb', line 1155 def to_json( = nil) JSON.generate(to_dynamic, ) end |