Class: PutCollectionsCollectionIDResponse403Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponse403Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30737 30738 30739 30740 30741 30742 30743 |
# File 'lib/schemas.rb', line 30737 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], put_collections_collection_id_response403_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
30745 30746 30747 |
# File 'lib/schemas.rb', line 30745 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30749 30750 30751 30752 30753 30754 |
# File 'lib/schemas.rb', line 30749 def to_dynamic { "message" => , "name" => put_collections_collection_id_response403_error_name, } end |
#to_json(options = nil) ⇒ Object
30756 30757 30758 |
# File 'lib/schemas.rb', line 30756 def to_json( = nil) JSON.generate(to_dynamic, ) end |