Class: PostApisAPIIDVersionsResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDVersionsResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 |
# File 'lib/schemas.rb', line 19966 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], post_apis_api_id_versions_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
19977 19978 19979 |
# File 'lib/schemas.rb', line 19977 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19981 19982 19983 19984 19985 19986 19987 19988 19989 |
# File 'lib/schemas.rb', line 19981 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => post_apis_api_id_versions_response401_type, } end |
#to_json(options = nil) ⇒ Object
19991 19992 19993 |
# File 'lib/schemas.rb', line 19991 def to_json( = nil) JSON.generate(to_dynamic, ) end |