Class: GetApisAPIIDVersionsVersionIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDVersionsVersionIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6565 6566 6567 6568 6569 6570 6571 6572 |
# File 'lib/schemas.rb', line 6565 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_versions_version_id_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
6574 6575 6576 |
# File 'lib/schemas.rb', line 6574 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6578 6579 6580 6581 6582 6583 6584 |
# File 'lib/schemas.rb', line 6578 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_versions_version_id_response500_type, } end |
#to_json(options = nil) ⇒ Object
6586 6587 6588 |
# File 'lib/schemas.rb', line 6586 def to_json( = nil) JSON.generate(to_dynamic, ) end |