Class: GetCollectionsCollectionIDTransformationsResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDTransformationsResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 |
# File 'lib/schemas.rb', line 8873 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], get_collections_collection_id_transformations_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
8884 8885 8886 |
# File 'lib/schemas.rb', line 8884 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8888 8889 8890 8891 8892 8893 8894 8895 8896 |
# File 'lib/schemas.rb', line 8888 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => get_collections_collection_id_transformations_response404_type, } end |
#to_json(options = nil) ⇒ Object
8898 8899 8900 |
# File 'lib/schemas.rb', line 8898 def to_json( = nil) JSON.generate(to_dynamic, ) end |