Class: PostCollectionsMergeResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsMergeResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22335 22336 22337 22338 22339 22340 22341 |
# File 'lib/schemas.rb', line 22335 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
22343 22344 22345 |
# File 'lib/schemas.rb', line 22343 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22347 22348 22349 22350 22351 22352 |
# File 'lib/schemas.rb', line 22347 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
22354 22355 22356 |
# File 'lib/schemas.rb', line 22354 def to_json( = nil) JSON.generate(to_dynamic, ) end |