Class: GetApisAPIIDSchemasSchemaIDFilesResponseFilesItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDSchemasSchemaIDFilesResponseFilesItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 |
# File 'lib/schemas.rb', line 5034 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], created_by: d["createdBy"], id: d["id"], get_apis_api_id_schemas_schema_id_files_response_files_item_name: d["name"], path: d["path"], updated_at: d["updatedAt"], updated_by: d["updatedBy"], ) end |
.from_json!(json) ⇒ Object
5047 5048 5049 |
# File 'lib/schemas.rb', line 5047 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 |
# File 'lib/schemas.rb', line 5051 def to_dynamic { "createdAt" => created_at, "createdBy" => created_by, "id" => id, "name" => get_apis_api_id_schemas_schema_id_files_response_files_item_name, "path" => path, "updatedAt" => updated_at, "updatedBy" => updated_by, } end |
#to_json(options = nil) ⇒ Object
5063 5064 5065 |
# File 'lib/schemas.rb', line 5063 def to_json( = nil) JSON.generate(to_dynamic, ) end |