Class: GetCollectionsCollectionIDRequestsRequestIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDRequestsRequestIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7922 7923 7924 7925 7926 7927 7928 7929 |
# File 'lib/schemas.rb', line 7922 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_collections_collection_id_requests_request_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
7931 7932 7933 |
# File 'lib/schemas.rb', line 7931 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7935 7936 7937 7938 7939 7940 7941 |
# File 'lib/schemas.rb', line 7935 def to_dynamic { "detail" => detail, "title" => title, "type" => get_collections_collection_id_requests_request_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
7943 7944 7945 |
# File 'lib/schemas.rb', line 7943 def to_json( = nil) JSON.generate(to_dynamic, ) end |