Class: GetMocksMockIDServerResponsesResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDServerResponsesResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11639 11640 11641 11642 11643 11644 11645 |
# File 'lib/schemas.rb', line 11639 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_mocks_mock_id_server_responses_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
11647 11648 11649 |
# File 'lib/schemas.rb', line 11647 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11651 11652 11653 11654 11655 11656 |
# File 'lib/schemas.rb', line 11651 def to_dynamic { "message" => , "name" => get_mocks_mock_id_server_responses_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
11658 11659 11660 |
# File 'lib/schemas.rb', line 11658 def to_json( = nil) JSON.generate(to_dynamic, ) end |