Class: GetApisAPIIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 |
# File 'lib/schemas.rb', line 4613 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], get_apis_api_id_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
4624 4625 4626 |
# File 'lib/schemas.rb', line 4624 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
4628 4629 4630 4631 4632 4633 4634 4635 4636 |
# File 'lib/schemas.rb', line 4628 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => get_apis_api_id_response401_type, } end |
#to_json(options = nil) ⇒ Object
4638 4639 4640 |
# File 'lib/schemas.rb', line 4638 def to_json( = nil) JSON.generate(to_dynamic, ) end |