Class: GetCollectionsCollectionIDTransformationsResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDTransformationsResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 |
# File 'lib/schemas.rb', line 8826 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_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
8837 8838 8839 |
# File 'lib/schemas.rb', line 8837 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8841 8842 8843 8844 8845 8846 8847 8848 8849 |
# File 'lib/schemas.rb', line 8841 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => get_collections_collection_id_transformations_response401_type, } end |
#to_json(options = nil) ⇒ Object
8851 8852 8853 |
# File 'lib/schemas.rb', line 8851 def to_json( = nil) JSON.generate(to_dynamic, ) end |