Class: DeleteApisAPIIDVersionsVersionIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteApisAPIIDVersionsVersionIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
664 665 666 667 668 669 670 671 |
# File 'lib/schemas.rb', line 664 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], delete_apis_api_id_versions_version_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
673 674 675 |
# File 'lib/schemas.rb', line 673 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
677 678 679 680 681 682 683 |
# File 'lib/schemas.rb', line 677 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_apis_api_id_versions_version_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
685 686 687 |
# File 'lib/schemas.rb', line 685 def to_json( = nil) JSON.generate(to_dynamic, ) end |