Class: GetWorkspacesWorkspaceIDResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetWorkspacesWorkspaceIDResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
17405 17406 17407 17408 17409 17410 17411 |
# File 'lib/schemas.rb', line 17405 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
17413 17414 17415 |
# File 'lib/schemas.rb', line 17413 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
17417 17418 17419 17420 17421 17422 |
# File 'lib/schemas.rb', line 17417 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
17424 17425 17426 |
# File 'lib/schemas.rb', line 17424 def to_json( = nil) JSON.generate(to_dynamic, ) end |