Class: PutCollectionsCollectionIDResponsesResponseIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31437 31438 31439 31440 31441 31442 31443 31444 |
# File 'lib/schemas.rb', line 31437 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], put_collections_collection_id_responses_response_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
31446 31447 31448 |
# File 'lib/schemas.rb', line 31446 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31450 31451 31452 31453 31454 31455 31456 |
# File 'lib/schemas.rb', line 31450 def to_dynamic { "detail" => detail, "title" => title, "type" => put_collections_collection_id_responses_response_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
31458 31459 31460 |
# File 'lib/schemas.rb', line 31458 def to_json( = nil) JSON.generate(to_dynamic, ) end |