Class: DeleteCollectionsCollectionIDResponsesResponseIDResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDResponsesResponseIDResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1729 1730 1731 1732 1733 1734 1735 1736 |
# File 'lib/schemas.rb', line 1729 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? DeleteCollectionsCollectionIDResponsesResponseIDResponse401ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], delete_collections_collection_id_responses_response_id_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
1738 1739 1740 |
# File 'lib/schemas.rb', line 1738 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1742 1743 1744 1745 1746 1747 1748 |
# File 'lib/schemas.rb', line 1742 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => delete_collections_collection_id_responses_response_id_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
1750 1751 1752 |
# File 'lib/schemas.rb', line 1750 def to_json( = nil) JSON.generate(to_dynamic, ) end |