Class: GetMonitorsResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMonitorsResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13213 13214 13215 13216 13217 13218 |
# File 'lib/schemas.rb', line 13213 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetMonitorsResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
13220 13221 13222 |
# File 'lib/schemas.rb', line 13220 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13224 13225 13226 13227 13228 |
# File 'lib/schemas.rb', line 13224 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
13230 13231 13232 |
# File 'lib/schemas.rb', line 13230 def to_json( = nil) JSON.generate(to_dynamic, ) end |