Class: PostCollectionsCollectionIDRequestsResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDRequestsResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
21251 21252 21253 21254 21255 21256 21257 21258 |
# File 'lib/schemas.rb', line 21251 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PostCollectionsCollectionIDRequestsResponse401ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], post_collections_collection_id_requests_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
21260 21261 21262 |
# File 'lib/schemas.rb', line 21260 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
21264 21265 21266 21267 21268 21269 21270 |
# File 'lib/schemas.rb', line 21264 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => post_collections_collection_id_requests_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
21272 21273 21274 |
# File 'lib/schemas.rb', line 21272 def to_json( = nil) JSON.generate(to_dynamic, ) end |