Class: PutCollectionsCollectionIDResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30920 30921 30922 30923 30924 30925 30926 |
# File 'lib/schemas.rb', line 30920 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], put_collections_collection_id_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
30928 30929 30930 |
# File 'lib/schemas.rb', line 30928 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30932 30933 30934 30935 30936 30937 |
# File 'lib/schemas.rb', line 30932 def to_dynamic { "message" => , "name" => put_collections_collection_id_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
30939 30940 30941 |
# File 'lib/schemas.rb', line 30939 def to_json( = nil) JSON.generate(to_dynamic, ) end |