Class: PutCollectionsCollectionIDTagsResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDTagsResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31766 31767 31768 31769 31770 31771 31772 31773 31774 31775 |
# File 'lib/schemas.rb', line 31766 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_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
31777 31778 31779 |
# File 'lib/schemas.rb', line 31777 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31781 31782 31783 31784 31785 31786 31787 31788 31789 |
# File 'lib/schemas.rb', line 31781 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
31791 31792 31793 |
# File 'lib/schemas.rb', line 31791 def to_json( = nil) JSON.generate(to_dynamic, ) end |