Class: GetMonitorsResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMonitorsResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13097 13098 13099 13100 13101 13102 13103 |
# File 'lib/schemas.rb', line 13097 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_monitors_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
13105 13106 13107 |
# File 'lib/schemas.rb', line 13105 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13109 13110 13111 13112 13113 13114 |
# File 'lib/schemas.rb', line 13109 def to_dynamic { "message" => , "name" => get_monitors_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
13116 13117 13118 |
# File 'lib/schemas.rb', line 13116 def to_json( = nil) JSON.generate(to_dynamic, ) end |