Class: GetMocksMockIDCallLogsResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDCallLogsResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
10976 10977 10978 10979 10980 10981 10982 10983 |
# File 'lib/schemas.rb', line 10976 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"], message: d["message"], get_mocks_mock_id_call_logs_response404_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
10985 10986 10987 |
# File 'lib/schemas.rb', line 10985 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
10989 10990 10991 10992 10993 10994 10995 |
# File 'lib/schemas.rb', line 10989 def to_dynamic { "details" => details, "message" => , "name" => get_mocks_mock_id_call_logs_response404_error_name, } end |
#to_json(options = nil) ⇒ Object
10997 10998 10999 |
# File 'lib/schemas.rb', line 10997 def to_json( = nil) JSON.generate(to_dynamic, ) end |