Class: DeleteMocksMockIDResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteMocksMockIDResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
2451 2452 2453 2454 2455 2456 2457 |
# File 'lib/schemas.rb', line 2451 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], delete_mocks_mock_id_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
2459 2460 2461 |
# File 'lib/schemas.rb', line 2459 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
2463 2464 2465 2466 2467 2468 |
# File 'lib/schemas.rb', line 2463 def to_dynamic { "message" => , "name" => delete_mocks_mock_id_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
2470 2471 2472 |
# File 'lib/schemas.rb', line 2470 def to_json( = nil) JSON.generate(to_dynamic, ) end |