Class: GetCollectionsCollectionIDFoldersFolderIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDFoldersFolderIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7591 7592 7593 7594 7595 7596 7597 7598 |
# File 'lib/schemas.rb', line 7591 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_collections_collection_id_folders_folder_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
7600 7601 7602 |
# File 'lib/schemas.rb', line 7600 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7604 7605 7606 7607 7608 7609 7610 |
# File 'lib/schemas.rb', line 7604 def to_dynamic { "detail" => detail, "title" => title, "type" => get_collections_collection_id_folders_folder_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
7612 7613 7614 |
# File 'lib/schemas.rb', line 7612 def to_json( = nil) JSON.generate(to_dynamic, ) end |