Class: GetApisAPIIDTagsResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDTagsResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 |
# File 'lib/schemas.rb', line 5712 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_tags_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
5723 5724 5725 |
# File 'lib/schemas.rb', line 5723 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5727 5728 5729 5730 5731 5732 5733 5734 5735 |
# File 'lib/schemas.rb', line 5727 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
5737 5738 5739 |
# File 'lib/schemas.rb', line 5737 def to_json( = nil) JSON.generate(to_dynamic, ) end |