Class: GetMocksMockIDServerResponsesResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDServerResponsesResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11488 11489 11490 11491 11492 11493 11494 |
# File 'lib/schemas.rb', line 11488 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_mocks_mock_id_server_responses_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
11496 11497 11498 |
# File 'lib/schemas.rb', line 11496 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11500 11501 11502 11503 11504 11505 |
# File 'lib/schemas.rb', line 11500 def to_dynamic { "message" => , "name" => get_mocks_mock_id_server_responses_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
11507 11508 11509 |
# File 'lib/schemas.rb', line 11507 def to_json( = nil) JSON.generate(to_dynamic, ) end |