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