Class: CreateSymmetricKeyResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- CreateSymmetricKeyResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1076 1077 1078 1079 1080 1081 |
# File 'lib/schemas.rb', line 1076 def self.from_dynamic!(d) d = Types::Hash[d] new( key: d.fetch("key"), ) end |
.from_json!(json) ⇒ Object
1083 1084 1085 |
# File 'lib/schemas.rb', line 1083 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1087 1088 1089 1090 1091 |
# File 'lib/schemas.rb', line 1087 def to_dynamic { "key" => key, } end |
#to_json(options = nil) ⇒ Object
1093 1094 1095 |
# File 'lib/schemas.rb', line 1093 def to_json( = nil) JSON.generate(to_dynamic, ) end |