Class: PostSecurityAPIValidationResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostSecurityAPIValidationResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27202 27203 27204 27205 27206 27207 27208 |
# File 'lib/schemas.rb', line 27202 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_security_api_validation_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
27210 27211 27212 |
# File 'lib/schemas.rb', line 27210 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27214 27215 27216 27217 27218 27219 |
# File 'lib/schemas.rb', line 27214 def to_dynamic { "message" => , "name" => post_security_api_validation_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
27221 27222 27223 |
# File 'lib/schemas.rb', line 27221 def to_json( = nil) JSON.generate(to_dynamic, ) end |