Class: DeleteApisAPIIDVersionsVersionIDResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteApisAPIIDVersionsVersionIDResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
590 591 592 593 594 595 596 597 |
# File 'lib/schemas.rb', line 590 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], delete_apis_api_id_versions_version_id_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
599 600 601 |
# File 'lib/schemas.rb', line 599 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
603 604 605 606 607 608 609 |
# File 'lib/schemas.rb', line 603 def to_dynamic { "detail" => detail, "title" => title, "type" => delete_apis_api_id_versions_version_id_response403_type, } end |
#to_json(options = nil) ⇒ Object
611 612 613 |
# File 'lib/schemas.rb', line 611 def to_json( = nil) JSON.generate(to_dynamic, ) end |