Class: DeleteMonitorsMonitorIDResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteMonitorsMonitorIDResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
3282 3283 3284 3285 3286 3287 |
# File 'lib/schemas.rb', line 3282 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteMonitorsMonitorIDResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
3289 3290 3291 |
# File 'lib/schemas.rb', line 3289 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
3293 3294 3295 3296 3297 |
# File 'lib/schemas.rb', line 3293 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
3299 3300 3301 |
# File 'lib/schemas.rb', line 3299 def to_json( = nil) JSON.generate(to_dynamic, ) end |