Class: DeleteMocksMockIDResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteMocksMockIDResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
2360 2361 2362 2363 2364 2365 2366 2367 |
# File 'lib/schemas.rb', line 2360 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"], message: d["message"], delete_mocks_mock_id_response404_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
2369 2370 2371 |
# File 'lib/schemas.rb', line 2369 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
2373 2374 2375 2376 2377 2378 2379 |
# File 'lib/schemas.rb', line 2373 def to_dynamic { "details" => details, "message" => , "name" => delete_mocks_mock_id_response404_error_name, } end |
#to_json(options = nil) ⇒ Object
2381 2382 2383 |
# File 'lib/schemas.rb', line 2381 def to_json( = nil) JSON.generate(to_dynamic, ) end |