Class: GetCollectionsCollectionIDResponsesResponseIDResponseData
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDResponsesResponseIDResponseData
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 |
# File 'lib/schemas.rb', line 8285 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], id: d["id"], last_revision: d["lastRevision"], last_updated_by: d["lastUpdatedBy"], get_collections_collection_id_responses_response_id_response_data_name: d["name"], owner: d["owner"], request: d["request"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
8299 8300 8301 |
# File 'lib/schemas.rb', line 8299 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 |
# File 'lib/schemas.rb', line 8303 def to_dynamic { "createdAt" => created_at, "id" => id, "lastRevision" => last_revision, "lastUpdatedBy" => last_updated_by, "name" => get_collections_collection_id_responses_response_id_response_data_name, "owner" => owner, "request" => request, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
8316 8317 8318 |
# File 'lib/schemas.rb', line 8316 def to_json( = nil) JSON.generate(to_dynamic, ) end |