Class: DeleteCollectionsCollectionIDResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1345 1346 1347 1348 1349 1350 |
# File 'lib/schemas.rb', line 1345 def self.from_dynamic!(d) d = Types::Hash[d] new( collection: d["collection"] ? DeleteCollectionsCollectionIDResponseCollection.from_dynamic!(d["collection"]) : nil, ) end |
.from_json!(json) ⇒ Object
1352 1353 1354 |
# File 'lib/schemas.rb', line 1352 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1356 1357 1358 1359 1360 |
# File 'lib/schemas.rb', line 1356 def to_dynamic { "collection" => collection&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
1362 1363 1364 |
# File 'lib/schemas.rb', line 1362 def to_json( = nil) JSON.generate(to_dynamic, ) end |