Class: PutCollectionsCollectionIDTagsResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDTagsResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31586 31587 31588 31589 31590 31591 31592 31593 31594 |
# File 'lib/schemas.rb', line 31586 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], put_collections_collection_id_tags_response400_type: d["type"], ) end |
.from_json!(json) ⇒ Object
31596 31597 31598 |
# File 'lib/schemas.rb', line 31596 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31600 31601 31602 31603 31604 31605 31606 31607 |
# File 'lib/schemas.rb', line 31600 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
31609 31610 31611 |
# File 'lib/schemas.rb', line 31609 def to_json( = nil) JSON.generate(to_dynamic, ) end |