Class: GetCollectionsCollectionIDResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8063 8064 8065 8066 8067 8068 8069 |
# File 'lib/schemas.rb', line 8063 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_collections_collection_id_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
8071 8072 8073 |
# File 'lib/schemas.rb', line 8071 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8075 8076 8077 8078 8079 8080 |
# File 'lib/schemas.rb', line 8075 def to_dynamic { "message" => , "name" => get_collections_collection_id_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
8082 8083 8084 |
# File 'lib/schemas.rb', line 8082 def to_json( = nil) JSON.generate(to_dynamic, ) end |