Class: PutCollectionsCollectionIDTagsResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDTagsResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31672 31673 31674 31675 31676 31677 31678 31679 31680 |
# File 'lib/schemas.rb', line 31672 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], put_collections_collection_id_tags_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
31682 31683 31684 |
# File 'lib/schemas.rb', line 31682 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31686 31687 31688 31689 31690 31691 31692 31693 |
# File 'lib/schemas.rb', line 31686 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
31695 31696 31697 |
# File 'lib/schemas.rb', line 31695 def to_json( = nil) JSON.generate(to_dynamic, ) end |