Class: DeleteCollectionsCollectionIDResponsesResponseIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDResponsesResponseIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1890 1891 1892 1893 1894 1895 1896 1897 |
# File 'lib/schemas.rb', line 1890 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], delete_collections_collection_id_responses_response_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
1899 1900 1901 |
# File 'lib/schemas.rb', line 1899 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1903 1904 1905 1906 1907 1908 1909 |
# File 'lib/schemas.rb', line 1903 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_collections_collection_id_responses_response_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
1911 1912 1913 |
# File 'lib/schemas.rb', line 1911 def to_json( = nil) JSON.generate(to_dynamic, ) end |