Class: GetWorkspacesWorkspaceIDResponseWorkspaceCollectionsItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetWorkspacesWorkspaceIDResponseWorkspaceCollectionsItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
17004 17005 17006 17007 17008 17009 17010 17011 |
# File 'lib/schemas.rb', line 17004 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], get_workspaces_workspace_id_response_workspace_collections_item_name: d["name"], uid: d["uid"], ) end |
.from_json!(json) ⇒ Object
17013 17014 17015 |
# File 'lib/schemas.rb', line 17013 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
17017 17018 17019 17020 17021 17022 17023 |
# File 'lib/schemas.rb', line 17017 def to_dynamic { "id" => id, "name" => get_workspaces_workspace_id_response_workspace_collections_item_name, "uid" => uid, } end |
#to_json(options = nil) ⇒ Object
17025 17026 17027 |
# File 'lib/schemas.rb', line 17025 def to_json( = nil) JSON.generate(to_dynamic, ) end |