Class: GetCollectionsCollectionIDResponseCollectionInfo
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDResponseCollectionInfo
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 |
# File 'lib/schemas.rb', line 7968 def self.from_dynamic!(d) d = Types::Hash[d] new( postman_id: d["_postman_id"], description: d["description"], get_collections_collection_id_response_collection_info_name: d["name"], schema: d["schema"], uid: d["uid"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
7980 7981 7982 |
# File 'lib/schemas.rb', line 7980 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 |
# File 'lib/schemas.rb', line 7984 def to_dynamic { "_postman_id" => postman_id, "description" => description, "name" => get_collections_collection_id_response_collection_info_name, "schema" => schema, "uid" => uid, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
7995 7996 7997 |
# File 'lib/schemas.rb', line 7995 def to_json( = nil) JSON.generate(to_dynamic, ) end |