Class: GetWorkspacesWorkspaceIDResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetWorkspacesWorkspaceIDResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
17346 17347 17348 17349 17350 17351 17352 17353 |
# File 'lib/schemas.rb', line 17346 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_workspaces_workspace_id_response404_error_name: d["name"], status_code: d["statusCode"], ) end |
.from_json!(json) ⇒ Object
17355 17356 17357 |
# File 'lib/schemas.rb', line 17355 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
17359 17360 17361 17362 17363 17364 17365 |
# File 'lib/schemas.rb', line 17359 def to_dynamic { "message" => , "name" => get_workspaces_workspace_id_response404_error_name, "statusCode" => status_code, } end |
#to_json(options = nil) ⇒ Object
17367 17368 17369 |
# File 'lib/schemas.rb', line 17367 def to_json( = nil) JSON.generate(to_dynamic, ) end |