Class: GetApisAPIIDTagsResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDTagsResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5666 5667 5668 5669 5670 5671 5672 5673 5674 |
# File 'lib/schemas.rb', line 5666 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], get_apis_api_id_tags_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
5676 5677 5678 |
# File 'lib/schemas.rb', line 5676 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5680 5681 5682 5683 5684 5685 5686 5687 |
# File 'lib/schemas.rb', line 5680 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
5689 5690 5691 |
# File 'lib/schemas.rb', line 5689 def to_json( = nil) JSON.generate(to_dynamic, ) end |