Class: GetApisAPIIDVersionsResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDVersionsResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6225 6226 6227 6228 6229 6230 6231 6232 |
# File 'lib/schemas.rb', line 6225 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_versions_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
6234 6235 6236 |
# File 'lib/schemas.rb', line 6234 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6238 6239 6240 6241 6242 6243 6244 |
# File 'lib/schemas.rb', line 6238 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_versions_response404_type, } end |
#to_json(options = nil) ⇒ Object
6246 6247 6248 |
# File 'lib/schemas.rb', line 6246 def to_json( = nil) JSON.generate(to_dynamic, ) end |