Class: PutApisAPIIDTagsResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDTagsResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29122 29123 29124 29125 29126 29127 29128 29129 29130 |
# File 'lib/schemas.rb', line 29122 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], put_apis_api_id_tags_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
29132 29133 29134 |
# File 'lib/schemas.rb', line 29132 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29136 29137 29138 29139 29140 29141 29142 29143 |
# File 'lib/schemas.rb', line 29136 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
29145 29146 29147 |
# File 'lib/schemas.rb', line 29145 def to_json( = nil) JSON.generate(to_dynamic, ) end |