Class: PutMonitorsMonitorIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutMonitorsMonitorIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
33587 33588 33589 33590 33591 33592 |
# File 'lib/schemas.rb', line 33587 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PutMonitorsMonitorIDResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
33594 33595 33596 |
# File 'lib/schemas.rb', line 33594 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
33598 33599 33600 33601 33602 |
# File 'lib/schemas.rb', line 33598 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
33604 33605 33606 |
# File 'lib/schemas.rb', line 33604 def to_json( = nil) JSON.generate(to_dynamic, ) end |