Class: GetApisAPIIDTasksTaskIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDTasksTaskIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6026 6027 6028 6029 6030 6031 6032 6033 |
# File 'lib/schemas.rb', line 6026 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_tasks_task_id_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
6035 6036 6037 |
# File 'lib/schemas.rb', line 6035 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6039 6040 6041 6042 6043 6044 6045 |
# File 'lib/schemas.rb', line 6039 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_tasks_task_id_response404_type, } end |
#to_json(options = nil) ⇒ Object
6047 6048 6049 |
# File 'lib/schemas.rb', line 6047 def to_json( = nil) JSON.generate(to_dynamic, ) end |