Class: DeleteCollectionsCollectionIDRequestsRequestIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDRequestsRequestIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1249 1250 1251 1252 1253 1254 |
# File 'lib/schemas.rb', line 1249 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteCollectionsCollectionIDRequestsRequestIDResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
1256 1257 1258 |
# File 'lib/schemas.rb', line 1256 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1260 1261 1262 1263 1264 |
# File 'lib/schemas.rb', line 1260 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
1266 1267 1268 |
# File 'lib/schemas.rb', line 1266 def to_json( = nil) JSON.generate(to_dynamic, ) end |