Class: PatchCollectionsCollectionIDResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchCollectionsCollectionIDResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
18310 18311 18312 18313 18314 18315 18316 |
# File 'lib/schemas.rb', line 18310 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
18318 18319 18320 |
# File 'lib/schemas.rb', line 18318 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
18322 18323 18324 18325 18326 18327 |
# File 'lib/schemas.rb', line 18322 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
18329 18330 18331 |
# File 'lib/schemas.rb', line 18329 def to_json( = nil) JSON.generate(to_dynamic, ) end |