Class: DeleteSecretResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteSecretResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1230 1231 1232 1233 1234 1235 |
# File 'lib/schemas.rb', line 1230 def self.from_dynamic!(d) d = Types::Hash[d] new( secret: DeleteSecretResponseSecret.from_dynamic!(d.fetch("secret")), ) end |
.from_json!(json) ⇒ Object
1237 1238 1239 |
# File 'lib/schemas.rb', line 1237 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1241 1242 1243 1244 1245 |
# File 'lib/schemas.rb', line 1241 def to_dynamic { "secret" => secret.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
1247 1248 1249 |
# File 'lib/schemas.rb', line 1247 def to_json( = nil) JSON.generate(to_dynamic, ) end |