Class: GetMocksMockIDServerResponsesResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDServerResponsesResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
11607 11608 11609 11610 11611 11612 11613 |
# File 'lib/schemas.rb', line 11607 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
11615 11616 11617 |
# File 'lib/schemas.rb', line 11615 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
11619 11620 11621 11622 11623 11624 |
# File 'lib/schemas.rb', line 11619 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
11626 11627 11628 |
# File 'lib/schemas.rb', line 11626 def to_json( = nil) JSON.generate(to_dynamic, ) end |