Class: PutApisAPIIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28381 28382 28383 28384 28385 28386 28387 28388 28389 28390 |
# File 'lib/schemas.rb', line 28381 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], put_apis_api_id_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
28392 28393 28394 |
# File 'lib/schemas.rb', line 28392 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28396 28397 28398 28399 28400 28401 28402 28403 28404 |
# File 'lib/schemas.rb', line 28396 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => put_apis_api_id_response401_type, } end |
#to_json(options = nil) ⇒ Object
28406 28407 28408 |
# File 'lib/schemas.rb', line 28406 def to_json( = nil) JSON.generate(to_dynamic, ) end |