Class: PostMonitorsMonitorIDRunResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsMonitorIDRunResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25532 25533 25534 25535 25536 25537 25538 |
# File 'lib/schemas.rb', line 25532 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
25540 25541 25542 |
# File 'lib/schemas.rb', line 25540 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25544 25545 25546 25547 25548 25549 |
# File 'lib/schemas.rb', line 25544 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
25551 25552 25553 |
# File 'lib/schemas.rb', line 25551 def to_json( = nil) JSON.generate(to_dynamic, ) end |