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
1064 1065 1066 1067 1068 1069 |
# File 'lib/schemas.rb', line 1064 def self.from_dynamic!(d) d = Types::Hash[d] new( key: d.fetch("key"), ) end |
.from_json!(json) ⇒ Object
1071 1072 1073 |
# File 'lib/schemas.rb', line 1071 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1075 1076 1077 1078 1079 |
# File 'lib/schemas.rb', line 1075 def to_dynamic { "key" => key, } end |
#to_json(options = nil) ⇒ Object
1081 1082 1083 |
# File 'lib/schemas.rb', line 1081 def to_json( = nil) JSON.generate(to_dynamic, ) end |