Class: PutCollectionsCollectionIDFoldersFolderIDResponseData
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDFoldersFolderIDResponseData
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 |
# File 'lib/schemas.rb', line 29639 def self.from_dynamic!(d) d = Types::Hash[d] new( collection: d["collection"], created_at: d["createdAt"], description: d["description"], folder: d["folder"], id: d["id"], last_revision: d["lastRevision"], last_updated_by: d["lastUpdatedBy"], put_collections_collection_id_folders_folder_id_response_data_name: d["name"], owner: d["owner"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
29655 29656 29657 |
# File 'lib/schemas.rb', line 29655 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29659 29660 29661 29662 29663 29664 29665 29666 29667 29668 29669 29670 29671 29672 |
# File 'lib/schemas.rb', line 29659 def to_dynamic { "collection" => collection, "createdAt" => created_at, "description" => description, "folder" => folder, "id" => id, "lastRevision" => last_revision, "lastUpdatedBy" => last_updated_by, "name" => put_collections_collection_id_folders_folder_id_response_data_name, "owner" => owner, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
29674 29675 29676 |
# File 'lib/schemas.rb', line 29674 def to_json( = nil) JSON.generate(to_dynamic, ) end |