Class: PutCollectionsCollectionIDRequestsRequestIDResponseData
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDRequestsRequestIDResponseData
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30134 30135 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 |
# File 'lib/schemas.rb', line 30134 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], description: d["description"], id: d["id"], last_revision: d["lastRevision"], last_updated_by: d["lastUpdatedBy"], put_collections_collection_id_requests_request_id_response_data_name: d["name"], owner: d["owner"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
30148 30149 30150 |
# File 'lib/schemas.rb', line 30148 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 |
# File 'lib/schemas.rb', line 30152 def to_dynamic { "createdAt" => created_at, "description" => description, "id" => id, "lastRevision" => last_revision, "lastUpdatedBy" => last_updated_by, "name" => put_collections_collection_id_requests_request_id_response_data_name, "owner" => owner, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
30165 30166 30167 |
# File 'lib/schemas.rb', line 30165 def to_json( = nil) JSON.generate(to_dynamic, ) end |