Class: GetApisAPIIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
4654 4655 4656 4657 4658 4659 4660 4661 |
# File 'lib/schemas.rb', line 4654 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
4663 4664 4665 |
# File 'lib/schemas.rb', line 4663 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
4667 4668 4669 4670 4671 4672 4673 |
# File 'lib/schemas.rb', line 4667 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_response404_type, } end |
#to_json(options = nil) ⇒ Object
4675 4676 4677 |
# File 'lib/schemas.rb', line 4675 def to_json( = nil) JSON.generate(to_dynamic, ) end |