Class: DeleteEnvironmentsEnvironmentIDResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteEnvironmentsEnvironmentIDResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
2127 2128 2129 2130 2131 2132 2133 |
# File 'lib/schemas.rb', line 2127 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], delete_environments_environment_id_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
2135 2136 2137 |
# File 'lib/schemas.rb', line 2135 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
2139 2140 2141 2142 2143 2144 |
# File 'lib/schemas.rb', line 2139 def to_dynamic { "message" => , "name" => delete_environments_environment_id_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
2146 2147 2148 |
# File 'lib/schemas.rb', line 2146 def to_json( = nil) JSON.generate(to_dynamic, ) end |