Class: PutCollectionsCollectionIDResponsesResponseIDResponseData
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDResponseData
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31057 31058 31059 31060 31061 31062 31063 31064 31065 31066 31067 31068 |
# File 'lib/schemas.rb', line 31057 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"], put_collections_collection_id_responses_response_id_response_data_name: d["name"], owner: d["owner"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
31070 31071 31072 |
# File 'lib/schemas.rb', line 31070 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31074 31075 31076 31077 31078 31079 31080 31081 31082 31083 31084 |
# File 'lib/schemas.rb', line 31074 def to_dynamic { "createdAt" => created_at, "id" => id, "lastRevision" => last_revision, "lastUpdatedBy" => last_updated_by, "name" => put_collections_collection_id_responses_response_id_response_data_name, "owner" => owner, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
31086 31087 31088 |
# File 'lib/schemas.rb', line 31086 def to_json( = nil) JSON.generate(to_dynamic, ) end |