Class: PostMonitorsMonitorIDRunResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsMonitorIDRunResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25591 25592 25593 25594 25595 25596 |
# File 'lib/schemas.rb', line 25591 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostMonitorsMonitorIDRunResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
25598 25599 25600 |
# File 'lib/schemas.rb', line 25598 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25602 25603 25604 25605 25606 |
# File 'lib/schemas.rb', line 25602 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
25608 25609 25610 |
# File 'lib/schemas.rb', line 25608 def to_json( = nil) JSON.generate(to_dynamic, ) end |