Class: GetApisResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6788 6789 6790 6791 6792 6793 6794 6795 |
# File 'lib/schemas.rb', line 6788 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
6797 6798 6799 |
# File 'lib/schemas.rb', line 6797 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6801 6802 6803 6804 6805 6806 6807 |
# File 'lib/schemas.rb', line 6801 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_response404_type, } end |
#to_json(options = nil) ⇒ Object
6809 6810 6811 |
# File 'lib/schemas.rb', line 6809 def to_json( = nil) JSON.generate(to_dynamic, ) end |