Class: PutApisAPIIDTagsResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDTagsResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29168 29169 29170 29171 29172 29173 29174 29175 29176 29177 |
# File 'lib/schemas.rb', line 29168 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_tags_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
29179 29180 29181 |
# File 'lib/schemas.rb', line 29179 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29183 29184 29185 29186 29187 29188 29189 29190 29191 |
# File 'lib/schemas.rb', line 29183 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
29193 29194 29195 |
# File 'lib/schemas.rb', line 29193 def to_json( = nil) JSON.generate(to_dynamic, ) end |