Class: PostSecurityAPIValidationResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostSecurityAPIValidationResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27259 27260 27261 27262 27263 27264 27265 |
# File 'lib/schemas.rb', line 27259 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_security_api_validation_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
27267 27268 27269 |
# File 'lib/schemas.rb', line 27267 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27271 27272 27273 27274 27275 27276 |
# File 'lib/schemas.rb', line 27271 def to_dynamic { "message" => , "name" => post_security_api_validation_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
27278 27279 27280 |
# File 'lib/schemas.rb', line 27278 def to_json( = nil) JSON.generate(to_dynamic, ) end |