Class: PostWorkspacesResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostWorkspacesResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27993 27994 27995 27996 27997 27998 27999 |
# File 'lib/schemas.rb', line 27993 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_workspaces_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
28001 28002 28003 |
# File 'lib/schemas.rb', line 28001 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28005 28006 28007 28008 28009 28010 |
# File 'lib/schemas.rb', line 28005 def to_dynamic { "message" => , "name" => post_workspaces_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
28012 28013 28014 |
# File 'lib/schemas.rb', line 28012 def to_json( = nil) JSON.generate(to_dynamic, ) end |