Class: PutWorkspacesWorkspaceIDTagsResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutWorkspacesWorkspaceIDTagsResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
35475 35476 35477 35478 35479 35480 35481 35482 35483 35484 |
# File 'lib/schemas.rb', line 35475 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], put_workspaces_workspace_id_tags_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
35486 35487 35488 |
# File 'lib/schemas.rb', line 35486 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
35490 35491 35492 35493 35494 35495 35496 35497 35498 |
# File 'lib/schemas.rb', line 35490 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
35500 35501 35502 |
# File 'lib/schemas.rb', line 35500 def to_json( = nil) JSON.generate(to_dynamic, ) end |