Class: PutMonitorsMonitorIDResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutMonitorsMonitorIDResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
33528 33529 33530 33531 33532 33533 33534 |
# File 'lib/schemas.rb', line 33528 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
33536 33537 33538 |
# File 'lib/schemas.rb', line 33536 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
33540 33541 33542 33543 33544 33545 |
# File 'lib/schemas.rb', line 33540 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
33547 33548 33549 |
# File 'lib/schemas.rb', line 33547 def to_json( = nil) JSON.generate(to_dynamic, ) end |