Class: GetMonitorsResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMonitorsResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13186 13187 13188 13189 13190 13191 13192 |
# File 'lib/schemas.rb', line 13186 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_monitors_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
13194 13195 13196 |
# File 'lib/schemas.rb', line 13194 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13198 13199 13200 13201 13202 13203 |
# File 'lib/schemas.rb', line 13198 def to_dynamic { "message" => , "name" => get_monitors_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
13205 13206 13207 |
# File 'lib/schemas.rb', line 13205 def to_json( = nil) JSON.generate(to_dynamic, ) end |