Class: GetMocksMockIDResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11280 11281 11282 11283 11284 11285 11286 |
# File 'lib/schemas.rb', line 11280 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_mocks_mock_id_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
11288 11289 11290 |
# File 'lib/schemas.rb', line 11288 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11292 11293 11294 11295 11296 11297 |
# File 'lib/schemas.rb', line 11292 def to_dynamic { "message" => , "name" => get_mocks_mock_id_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
11299 11300 11301 |
# File 'lib/schemas.rb', line 11299 def to_json( = nil) JSON.generate(to_dynamic, ) end |