Class: DeleteMonitorsMonitorIDResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteMonitorsMonitorIDResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
3312 3313 3314 3315 3316 3317 3318 |
# File 'lib/schemas.rb', line 3312 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], delete_monitors_monitor_id_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
3320 3321 3322 |
# File 'lib/schemas.rb', line 3320 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
3324 3325 3326 3327 3328 3329 |
# File 'lib/schemas.rb', line 3324 def to_dynamic { "message" => , "name" => delete_monitors_monitor_id_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
3331 3332 3333 |
# File 'lib/schemas.rb', line 3331 def to_json( = nil) JSON.generate(to_dynamic, ) end |