Class: GetTagsSlugEntitiesResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetTagsSlugEntitiesResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 |
# File 'lib/schemas.rb', line 16533 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], get_tags_slug_entities_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
16544 16545 16546 |
# File 'lib/schemas.rb', line 16544 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16548 16549 16550 16551 16552 16553 16554 16555 16556 |
# File 'lib/schemas.rb', line 16548 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
16558 16559 16560 |
# File 'lib/schemas.rb', line 16558 def to_json( = nil) JSON.generate(to_dynamic, ) end |