Class: DeleteApisAPIIDVersionsVersionIDResponse401
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- DeleteApisAPIIDVersionsVersionIDResponse401
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 549 550 551 552 553 554 555 556 557 558 | # File 'lib/schemas.rb', line 549 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], delete_apis_api_id_versions_version_id_response401_type: d["type"], ) end | 
.from_json!(json) ⇒ Object
| 560 561 562 | # File 'lib/schemas.rb', line 560 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 564 565 566 567 568 569 570 571 572 | # File 'lib/schemas.rb', line 564 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => delete_apis_api_id_versions_version_id_response401_type, } end | 
#to_json(options = nil) ⇒ Object
| 574 575 576 | # File 'lib/schemas.rb', line 574 def to_json( = nil) JSON.generate(to_dynamic, ) end |