Class: GetCollectionsCollectionIDFoldersFolderIDResponseData
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDFoldersFolderIDResponseData
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 |
# File 'lib/schemas.rb', line 7306 def self.from_dynamic!(d) d = Types::Hash[d] new( collection: d["collection"], created_at: d["createdAt"], description: d["description"], id: d["id"], last_revision: d["lastRevision"], last_updated_by: d["lastUpdatedBy"], get_collections_collection_id_folders_folder_id_response_data_name: d["name"], owner: d["owner"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
7321 7322 7323 |
# File 'lib/schemas.rb', line 7321 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 |
# File 'lib/schemas.rb', line 7325 def to_dynamic { "collection" => collection, "createdAt" => created_at, "description" => description, "id" => id, "lastRevision" => last_revision, "lastUpdatedBy" => last_updated_by, "name" => get_collections_collection_id_folders_folder_id_response_data_name, "owner" => owner, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
7339 7340 7341 |
# File 'lib/schemas.rb', line 7339 def to_json( = nil) JSON.generate(to_dynamic, ) end |