Class: GetMocksMockIDResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11431 11432 11433 11434 11435 11436 11437 |
# File 'lib/schemas.rb', line 11431 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_mocks_mock_id_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
11439 11440 11441 |
# File 'lib/schemas.rb', line 11439 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11443 11444 11445 11446 11447 11448 |
# File 'lib/schemas.rb', line 11443 def to_dynamic { "message" => , "name" => get_mocks_mock_id_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
11450 11451 11452 |
# File 'lib/schemas.rb', line 11450 def to_json( = nil) JSON.generate(to_dynamic, ) end |