Class: DeleteCollectionsCollectionIDFoldersFolderIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDFoldersFolderIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
973 974 975 976 977 978 979 980 |
# File 'lib/schemas.rb', line 973 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], delete_collections_collection_id_folders_folder_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
982 983 984 |
# File 'lib/schemas.rb', line 982 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
986 987 988 989 990 991 992 |
# File 'lib/schemas.rb', line 986 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_collections_collection_id_folders_folder_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
994 995 996 |
# File 'lib/schemas.rb', line 994 def to_json( = nil) JSON.generate(to_dynamic, ) end |