Class: GetCollectionsCollectionIDResponsesResponseIDResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDResponsesResponseIDResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8506 8507 8508 8509 8510 8511 8512 8513 |
# File 'lib/schemas.rb', line 8506 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? GetCollectionsCollectionIDResponsesResponseIDResponse404ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], get_collections_collection_id_responses_response_id_response404_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
8515 8516 8517 |
# File 'lib/schemas.rb', line 8515 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8519 8520 8521 8522 8523 8524 8525 |
# File 'lib/schemas.rb', line 8519 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => get_collections_collection_id_responses_response_id_response404_error_name, } end |
#to_json(options = nil) ⇒ Object
8527 8528 8529 |
# File 'lib/schemas.rb', line 8527 def to_json( = nil) JSON.generate(to_dynamic, ) end |