Class: GetCollectionsCollectionIDTagsResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDTagsResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8706 8707 8708 8709 8710 8711 8712 8713 8714 |
# File 'lib/schemas.rb', line 8706 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], get_collections_collection_id_tags_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
8716 8717 8718 |
# File 'lib/schemas.rb', line 8716 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8720 8721 8722 8723 8724 8725 8726 8727 |
# File 'lib/schemas.rb', line 8720 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
8729 8730 8731 |
# File 'lib/schemas.rb', line 8729 def to_json( = nil) JSON.generate(to_dynamic, ) end |