Class: TaskErrorError
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- TaskErrorError
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
36683 36684 36685 36686 36687 36688 |
# File 'lib/schemas.rb', line 36683 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], ) end |
.from_json!(json) ⇒ Object
36690 36691 36692 |
# File 'lib/schemas.rb', line 36690 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
36694 36695 36696 36697 36698 |
# File 'lib/schemas.rb', line 36694 def to_dynamic { "message" => , } end |
#to_json(options = nil) ⇒ Object
36700 36701 36702 |
# File 'lib/schemas.rb', line 36700 def to_json( = nil) JSON.generate(to_dynamic, ) end |