Class: GetMocksMockIDResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11340 11341 11342 11343 11344 11345 11346 11347 |
# File 'lib/schemas.rb', line 11340 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"], message: d["message"], get_mocks_mock_id_response404_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
11349 11350 11351 |
# File 'lib/schemas.rb', line 11349 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11353 11354 11355 11356 11357 11358 11359 |
# File 'lib/schemas.rb', line 11353 def to_dynamic { "details" => details, "message" => , "name" => get_mocks_mock_id_response404_error_name, } end |
#to_json(options = nil) ⇒ Object
11361 11362 11363 |
# File 'lib/schemas.rb', line 11361 def to_json( = nil) JSON.generate(to_dynamic, ) end |