Class: GetCollectionsResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9173 9174 9175 9176 9177 9178 9179 |
# File 'lib/schemas.rb', line 9173 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_collections_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
9181 9182 9183 |
# File 'lib/schemas.rb', line 9181 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9185 9186 9187 9188 9189 9190 |
# File 'lib/schemas.rb', line 9185 def to_dynamic { "message" => , "name" => get_collections_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
9192 9193 9194 |
# File 'lib/schemas.rb', line 9192 def to_json( = nil) JSON.generate(to_dynamic, ) end |