Class: PostSecurityAPIValidationResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostSecurityAPIValidationResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27375 27376 27377 27378 27379 27380 |
# File 'lib/schemas.rb', line 27375 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostSecurityAPIValidationResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
27382 27383 27384 |
# File 'lib/schemas.rb', line 27382 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27386 27387 27388 27389 27390 |
# File 'lib/schemas.rb', line 27386 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
27392 27393 27394 |
# File 'lib/schemas.rb', line 27392 def to_json( = nil) JSON.generate(to_dynamic, ) end |