Class: PutApisAPIIDSchemasSchemaIDFilesFilePathResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDSchemasSchemaIDFilesFilePathResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28735 28736 28737 28738 28739 28740 28741 28742 28743 28744 |
# File 'lib/schemas.rb', line 28735 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], put_apis_api_id_schemas_schema_id_files_file_path_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
28746 28747 28748 |
# File 'lib/schemas.rb', line 28746 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28750 28751 28752 28753 28754 28755 28756 28757 28758 |
# File 'lib/schemas.rb', line 28750 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => put_apis_api_id_schemas_schema_id_files_file_path_response401_type, } end |
#to_json(options = nil) ⇒ Object
28760 28761 28762 |
# File 'lib/schemas.rb', line 28760 def to_json( = nil) JSON.generate(to_dynamic, ) end |