Class: DeleteMonitorsMonitorIDResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteMonitorsMonitorIDResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
3255 3256 3257 3258 3259 3260 3261 |
# File 'lib/schemas.rb', line 3255 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], delete_monitors_monitor_id_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
3263 3264 3265 |
# File 'lib/schemas.rb', line 3263 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
3267 3268 3269 3270 3271 3272 |
# File 'lib/schemas.rb', line 3267 def to_dynamic { "message" => , "name" => delete_monitors_monitor_id_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
3274 3275 3276 |
# File 'lib/schemas.rb', line 3274 def to_json( = nil) JSON.generate(to_dynamic, ) end |