Class: GetApisAPIIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
4728 4729 4730 4731 4732 4733 4734 4735 |
# File 'lib/schemas.rb', line 4728 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
4737 4738 4739 |
# File 'lib/schemas.rb', line 4737 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
4741 4742 4743 4744 4745 4746 4747 |
# File 'lib/schemas.rb', line 4741 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
4749 4750 4751 |
# File 'lib/schemas.rb', line 4749 def to_json( = nil) JSON.generate(to_dynamic, ) end |