Class: GetCollectionsCollectionIDTransformationsResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDTransformationsResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 |
# File 'lib/schemas.rb', line 8920 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_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
8931 8932 8933 |
# File 'lib/schemas.rb', line 8931 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8935 8936 8937 8938 8939 8940 8941 8942 8943 |
# File 'lib/schemas.rb', line 8935 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => get_collections_collection_id_transformations_response500_type, } end |
#to_json(options = nil) ⇒ Object
8945 8946 8947 |
# File 'lib/schemas.rb', line 8945 def to_json( = nil) JSON.generate(to_dynamic, ) end |