Class: GetEnvironmentsEnvironmentIDResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetEnvironmentsEnvironmentIDResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9859 9860 9861 9862 9863 9864 9865 |
# File 'lib/schemas.rb', line 9859 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
9867 9868 9869 |
# File 'lib/schemas.rb', line 9867 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9871 9872 9873 9874 9875 9876 |
# File 'lib/schemas.rb', line 9871 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
9878 9879 9880 |
# File 'lib/schemas.rb', line 9878 def to_json( = nil) JSON.generate(to_dynamic, ) end |