Class: PostMonitorsMonitorIDRunResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsMonitorIDRunResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25475 25476 25477 25478 25479 25480 25481 |
# File 'lib/schemas.rb', line 25475 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_monitors_monitor_id_run_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
25483 25484 25485 |
# File 'lib/schemas.rb', line 25483 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25487 25488 25489 25490 25491 25492 |
# File 'lib/schemas.rb', line 25487 def to_dynamic { "message" => , "name" => post_monitors_monitor_id_run_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
25494 25495 25496 |
# File 'lib/schemas.rb', line 25494 def to_json( = nil) JSON.generate(to_dynamic, ) end |