Class: PutCollectionsCollectionIDTagsResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDTagsResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 |
# File 'lib/schemas.rb', line 31718 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], put_collections_collection_id_tags_response404_type: d["type"], ) end |
.from_json!(json) ⇒ Object
31729 31730 31731 |
# File 'lib/schemas.rb', line 31729 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31733 31734 31735 31736 31737 31738 31739 31740 31741 |
# File 'lib/schemas.rb', line 31733 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
31743 31744 31745 |
# File 'lib/schemas.rb', line 31743 def to_json( = nil) JSON.generate(to_dynamic, ) end |