Class: GetCollectionsCollectionIDRequestsRequestIDResponseData
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDRequestsRequestIDResponseData
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 |
# File 'lib/schemas.rb', line 7641 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_requests_request_id_response_data_name: d["name"], owner: d["owner"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
7654 7655 7656 |
# File 'lib/schemas.rb', line 7654 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 |
# File 'lib/schemas.rb', line 7658 def to_dynamic { "createdAt" => created_at, "id" => id, "lastRevision" => last_revision, "lastUpdatedBy" => last_updated_by, "name" => get_collections_collection_id_requests_request_id_response_data_name, "owner" => owner, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
7670 7671 7672 |
# File 'lib/schemas.rb', line 7670 def to_json( = nil) JSON.generate(to_dynamic, ) end |