Class: PatchCollectionsCollectionIDResponseCollection
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchCollectionsCollectionIDResponseCollection
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
17986 17987 17988 17989 17990 17991 17992 17993 |
# File 'lib/schemas.rb', line 17986 def self.from_dynamic!(d) d = Types::Hash[d] new( description: d["description"], id: d["id"], patch_collections_collection_id_response_collection_name: d["name"], ) end |
.from_json!(json) ⇒ Object
17995 17996 17997 |
# File 'lib/schemas.rb', line 17995 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
17999 18000 18001 18002 18003 18004 18005 |
# File 'lib/schemas.rb', line 17999 def to_dynamic { "description" => description, "id" => id, "name" => patch_collections_collection_id_response_collection_name, } end |
#to_json(options = nil) ⇒ Object
18007 18008 18009 |
# File 'lib/schemas.rb', line 18007 def to_json( = nil) JSON.generate(to_dynamic, ) end |