Class: PutEnvironmentsEnvironmentIDResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutEnvironmentsEnvironmentIDResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
32210 32211 32212 32213 32214 32215 32216 |
# File 'lib/schemas.rb', line 32210 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], put_environments_environment_id_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
32218 32219 32220 |
# File 'lib/schemas.rb', line 32218 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
32222 32223 32224 32225 32226 32227 |
# File 'lib/schemas.rb', line 32222 def to_dynamic { "message" => , "name" => put_environments_environment_id_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
32229 32230 32231 |
# File 'lib/schemas.rb', line 32229 def to_json( = nil) JSON.generate(to_dynamic, ) end |