Class: PostMonitorsMonitorIDRunResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsMonitorIDRunResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25564 25565 25566 25567 25568 25569 25570 |
# File 'lib/schemas.rb', line 25564 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_monitors_monitor_id_run_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
25572 25573 25574 |
# File 'lib/schemas.rb', line 25572 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25576 25577 25578 25579 25580 25581 |
# File 'lib/schemas.rb', line 25576 def to_dynamic { "message" => , "name" => post_monitors_monitor_id_run_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
25583 25584 25585 |
# File 'lib/schemas.rb', line 25583 def to_json( = nil) JSON.generate(to_dynamic, ) end |