Class: DeleteApisAPIIDVersionsVersionIDResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteApisAPIIDVersionsVersionIDResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
627 628 629 630 631 632 633 634 |
# File 'lib/schemas.rb', line 627 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], delete_apis_api_id_versions_version_id_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
636 637 638 |
# File 'lib/schemas.rb', line 636 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
640 641 642 643 644 645 646 |
# File 'lib/schemas.rb', line 640 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_apis_api_id_versions_version_id_response404_type, } end |
#to_json(options = nil) ⇒ Object
648 649 650 |
# File 'lib/schemas.rb', line 648 def to_json( = nil) JSON.generate(to_dynamic, ) end |