Class: PutCollectionsCollectionIDTagsResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDTagsResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31629 31630 31631 31632 31633 31634 31635 31636 31637 |
# File 'lib/schemas.rb', line 31629 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], put_collections_collection_id_tags_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
31639 31640 31641 |
# File 'lib/schemas.rb', line 31639 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31643 31644 31645 31646 31647 31648 31649 31650 |
# File 'lib/schemas.rb', line 31643 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
31652 31653 31654 |
# File 'lib/schemas.rb', line 31652 def to_json( = nil) JSON.generate(to_dynamic, ) end |