Class: DeleteEnvironmentsEnvironmentIDResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteEnvironmentsEnvironmentIDResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1981 1982 1983 1984 1985 1986 1987 |
# File 'lib/schemas.rb', line 1981 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], delete_environments_environment_id_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
1989 1990 1991 |
# File 'lib/schemas.rb', line 1989 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1993 1994 1995 1996 1997 1998 |
# File 'lib/schemas.rb', line 1993 def to_dynamic { "message" => , "name" => delete_environments_environment_id_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
2000 2001 2002 |
# File 'lib/schemas.rb', line 2000 def to_json( = nil) JSON.generate(to_dynamic, ) end |